Ozzie
10/18/2017, 10:23 PMwelf
10/19/2017, 1:09 AMtype Dress
, type Shoes
, type Suit
, type TShirt
, how can I put them into the list of field products
in the type Cart
to reference all products added to the shopping cart? With `union type`s or `interface`s I can unite all my product types under the type Product
and then put them all into the list in products: [Product!]!
field of the type Cart
.
What is the best or recommended practice to do it without `interface`s and `union type`s?lastmjs
10/19/2017, 2:18 AMError: Module version mismatch. Expected 48, got 57.\n at Error (native)\n at Object.Module._extensions..node (module.js:597:18)
oxyoxy88
10/19/2017, 3:54 AMoxyoxy88
10/19/2017, 3:56 AMm.b.iqbal
10/19/2017, 5:04 AMeliezedeck
10/19/2017, 6:40 AMoxyoxy88
10/19/2017, 7:41 AMoxyoxy88
10/19/2017, 7:42 AMoxyoxy88
10/19/2017, 7:42 AMoxyoxy88
10/19/2017, 7:42 AMoxyoxy88
10/19/2017, 7:44 AMoxyoxy88
10/19/2017, 7:45 AMLuke Diebold
10/19/2017, 8:08 AMantho1404
10/19/2017, 8:09 AMmulyoved
10/19/2017, 10:00 AM"logs":["START RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58 Version: $LATEST
Unable to import module 'src\\sendmail\\sendEmail-lambda': Error
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
END RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58
REPORT RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58\tDuration: 1.42 ms\tBilled Duration: 100 ms \tMemory Size: 512 MB\tMax Memory Used: 20 MB\t
"],"returnValue":{"errorMessage":"Cannot find module '/var/task/src\\sendmail\\sendEmail-lambda'","errorType":"Error","stackTrace":["Module.require (module.js:497:17)","require (internal/module.js:20:19)"]}}
any idea?samuell
10/19/2017, 11:05 AMJannis Pohlmann
10/19/2017, 11:23 AMm.b.iqbal
10/19/2017, 11:31 AMdivyendu
10/19/2017, 12:22 PMJannis Pohlmann
10/19/2017, 12:43 PMapollo-codegen
to work with Graphcool. It looks like the recently added @module
directive (and @isUnique
as well) break it:
$ apollo-codegen introspect-schema <simple Graphcool endpoint> --output schema.json
$ apollo-codegen generate types.graphql --target ts --schema schema.json
.../types.graphql: Unknown directive "model".
.../types.graphql: Unknown directive "isUnique".
.../types.graphql: Unknown directive "isUnique".
Jannis Pohlmann
10/19/2017, 12:44 PMJannis Pohlmann
10/19/2017, 12:46 PMSam Dickerman
10/19/2017, 1:29 PMdivyendu
10/19/2017, 2:09 PMmwickett
10/19/2017, 2:51 PM✖ Unable to marshall request to JSON: Unable to marshall request to JSON: Parameter 'FunctionName' must not be null
when I run graphcool deploy -t development
mwickett
10/19/2017, 2:55 PMRequest could not be satisfied
mwickett
10/19/2017, 2:55 PMsenorcodecat
10/19/2017, 2:57 PMsenorcodecat
10/19/2017, 2:57 PM