Changelog for morpheus-graphql-0.8.0

[0.8.0] -

Changed

Added


data Realm  =
    Sky
  | Sea
  | Underworld
    deriving (Generic, GQLType)

data Deity  = Deity{
    fullName:: Text,
    realm:: Realm
  } deriving (Generic, GQLType)

data Character  =
    CharacterDeity Deity -- Only <tyconName><conName> should generate direct link
  -- RECORDS
  | Creature { creatureName :: Text, creatureAge :: Int }
  --- Types
  | SomeDeity Deity
  | CharacterInt Int
  | SomeMutli Int Text
  --- ENUMS
  | Zeus
  | Cronus deriving (Generic, GQLType)


will generate schema:

enum Realm {
  Sky
  Sea
  Underworld
}

type Deity {
  fullName: String!
  realm: Realm!
}

union Character =
    Deity
  | Creature
  | SomeDeity
  | CharacterInt
  | SomeMutli
  | CharacterEnumObject

type Creature {
  creatureName: String!
  creatureAge: Int!
}

type SomeDeity {
  _0: Deity!
}

type CharacterInt {
  _0: Int!
}

type SomeMutli {
  _0: Int!
  _1: String!
}

# enum
type CharacterEnumObject {
  enum: CharacterEnum!
}

enum CharacterEnum {
  Zeus
  Cronus
}

rules:

Removed

Fixed

[0.7.1] - 26.11.2019

[0.7.0] - 24.11.2019

Removed

Changed

resolver :: () -> ResolveM EVENT IO Address
resolver = MutResolver  {
  mutEvents = [someEventForSubscription],
  mutResolver = lift setDBAddress
}
-- Mutation Wit Event Triggering : sends events to subscription
resolver :: () -> ResolveM EVENT IO Address
resolver = MutResolver \$ do
  value <- lift setDBAddress
  pure ([someEventForSubscription], value)
-- or
-- Mutation Without Event Triggering
resolver :: () -> ResolveM EVENT IO Address
resolver _args = lift setDBAddress

Added

Fixed

[0.6.2] - 2.11.2019

Added

[0.6.0] - 1.11.2019

Removed

Added

[0.5.0] - 31.10.2019

Added

Fixed

Changed

[0.4.0] - 09.10.2019

Changed

Fixed:

[0.3.1] - 05.10.2019

Changed

[0.3.0] - 04.10.2019

Added

Fixed

Changed

[0.2.2] - 30.08.2019

Fixed

[0.2.1] - 23.08.2019

[0.2.0] - 23.08.2019

Added

Fixed:

Changed

[0.1.1] - 1.07.2019

Fixed:

[0.1.0] - 30.06.2019

thanks for contributing to: @krisajenkins, @hovind, @vmchale, @msvbg

Added

Changed

Fixed:

Removed