jaybauer
04/26/2018, 3:46 PMuser
04/26/2018, 5:24 PMuser
04/26/2018, 5:27 PMKyleG
04/26/2018, 5:41 PMindex.js
depending on some build configuration? Right now it's hardcoded to <http://localhost:4000>
(and <ws://localhost:4000>
for subscriptions) - is there a standard practice to change this value as obviously something like an ENV var won't suffice as it is client code running on a visitor's browser.medelman
04/26/2018, 6:46 PMnilan
04/26/2018, 6:47 PMameistad
04/26/2018, 7:49 PM# import Post from "./generated/prisma.graphql"
in schema.graphql do anything? If I remove it i get errors. I'm using the standard node-advance boilerplate from graphql createrleonr
04/26/2018, 7:55 PMmichieldewilde
04/26/2018, 11:53 PMnpm run build
command:
> rimraf dist && tsc
node_modules/@types/node/index.d.ts(2381,15): error TS2300: Duplicate identifier 'URL'.
node_modules/@types/node/index.d.ts(2399,15): error TS2300: Duplicate identifier 'URLSearchParams'.
node_modules/@types/node/index.d.ts(2417,14): error TS2661: Cannot export 'URL'. Only local declarations can be exported from a module.
node_modules/@types/node/index.d.ts(2417,19): error TS2661: Cannot export 'URLSearchParams'. Only local declarations can be exported from a module.
node_modules/typescript/lib/lib.dom.d.ts(13401,11): error TS2300: Duplicate identifier 'URL'.
node_modules/typescript/lib/lib.dom.d.ts(13417,13): error TS2300: Duplicate identifier 'URL'.
node_modules/typescript/lib/lib.dom.d.ts(13424,11): error TS2300: Duplicate identifier 'URLSearchParams'.
node_modules/typescript/lib/lib.dom.d.ts(13451,13): error TS2300: Duplicate identifier 'URLSearchParams'.
node_modules/typescript/lib/lib.dom.d.ts(15737,13): error TS2300: Duplicate identifier 'URL'.
node_modules/typescript/lib/lib.dom.d.ts(15738,13): error TS2300: Duplicate identifier 'URLSearchParams'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! server@0.1.0 build: `rimraf dist && tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the server@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I would be very grateful if somebody could help me with this.virtualirfan
04/27/2018, 12:41 AMget-graphql-schema
on the relay endpoint currently skips the subscription schema but it is returned for the simple API endpoint. I can't just copy paste the subscription schema sections into the relay schema because of missing types and general incompatibility between the two. What's a way to deal with this? I don't mind generating the missing subscription types/inputs via a script but I need help seeing what that should look like.
Note: I'm OK switching to prisma at some point but can't do it just yet.
Note: I'm aware of the discussion in https://github.com/graphcool/graphcool-framework/issues/85 and https://www.graph.cool/forum/t/relay-modern-subscriptions/420/7 but neither of those provides any details on how to go about converting to a relay schema from simple.Fi1osof
04/27/2018, 4:51 AMRaviv
04/27/2018, 7:58 AMMoritz
04/27/2018, 8:46 AMprisma init
, im no longer being pointed to selecting a boilerplate? is this intended in 1.7 ? The docs dont reflect any changes. Thanks!max
04/27/2018, 8:56 AMprisma 1.7
https://github.com/graphcool/prisma/pulse/monthly. Well done parrotwave6🚀💯👍graphcooltaikn
04/27/2018, 9:00 AM1.6.3
are there plans to bring it to the latest version?🤔hamdi
04/27/2018, 9:26 AMjohn
04/27/2018, 10:48 AMAlex
04/27/2018, 1:06 PMMoritz
04/27/2018, 1:15 PMERROR: Workspace * does not exist
{
"data": {
"generateClusterToken": null
},
Any ideas? this is happening since upgrading prisma to 1.7.2Philippe
04/27/2018, 1:51 PMPhilippe
04/27/2018, 1:51 PMbenwis
04/27/2018, 4:18 PMvirtualirfan
04/27/2018, 6:11 PM_<>Meta
syntax standard GraphQL syntactic sugar or a specific extension by graph.cool? See: https://www.howtographql.com/react-relay/7-subscriptions/ and scroll down or search for _votesMeta
(_votesMeta { count }
).Amal
04/27/2018, 9:03 PMAmal
04/27/2018, 9:06 PMtype Person @model {
id: ID! @isUnique
firstName: String!
surName: String!
gender: String
dateOfBirth: DateTime
mother: Person @relation(name: "Mother")
father: Person @relation(name: "Father")
children: [Person!]! @relation(name: "Children")
}
cloudpilot
04/27/2018, 9:18 PMERROR: Authentication token is invalid: Token can't be decoded: Expected token [null] to be composed of 2 or 3 parts separated by dots.
cloudpilot
04/27/2018, 9:19 PMprisma login
cloudpilot
04/27/2018, 9:20 PM1.8-beta
cloudpilot
04/27/2018, 9:20 PMprisma token
and prisma deploy
virtualirfan
04/27/2018, 10:11 PMMaximum call stack size exceeded
error.
$ relay-compiler --verbose --src ./queries/ --schema ./data/schema.graphql
HINT: pass --watch to keep watching for changes.
Writing js
ERROR:
rule is not a function
From: CodegenRunner.write
at /Users/irfan/.config/yarn/global/node_modules/graphql/validation/validate.js:73:12
at Array.map (<anonymous>)
at visitUsingRules (/Users/irfan/.config/yarn/global/node_modules/graphql/validation/validate.js:72:24)
at validate (/Users/irfan/.config/yarn/global/node_modules/graphql/validation/validate.js:61:10)
at Object.validateOrThrow [as validate] (/Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/GraphQLValidator.js:35:26)
at convertASTDefinitions (/Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/ASTConvert.js:117:33)
at /Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/ASTConvert.js:98:12
at Object.run (/Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/GraphQLCompilerProfiler.js:52:30)
at Object.convertASTDocumentsWithBase (/Users/irfan/.config/yarn/global/node_modules/graphql-compiler/lib/ASTConvert.js:44:47)
at /Users/irfan/.config/yarn/global/node_modules/relay-compiler/bin/relay-compiler:9856:37