Mr. Bell
07/27/2018, 12:45 AMMr. Bell
07/27/2018, 12:45 AMhello-world-p docker exec -it 0ed6b3580a1e /bin/bash
root@0ed6b3580a1e:/usr/src/app# ls
Dockerfile datamodel.graphql docker-compose.yml prisma.yml
root@0ed6b3580a1e:/usr/src/app# prisma deploy
▸ Could not connect to server at <http://localhost:4466>. Please check if your server is running.
Get in touch if you need help: <https://www.prisma.io/forum/>
To get more detailed output, run $ export DEBUG="*"
root@0ed6b3580a1e:/usr/src/app#
Mr. Bell
07/27/2018, 12:46 AMprisma init {project-name}
manticarodrigo
07/27/2018, 1:40 AMnoahdavis
07/27/2018, 10:43 AMnoahdavis
07/27/2018, 10:43 AMaggregate
is ridiculous. It takes 3x as long than the actual query:
> started - 0s
> ✓ keywords - 11s
> ✓ aggregate - 34s
noahdavis
07/27/2018, 10:45 AMKimo
07/27/2018, 10:59 AMRaeesaa
07/27/2018, 11:52 AMaroman
07/27/2018, 1:49 PMprisma deploy
on one of my projects it wont start up after yarn start
.
I keep getting this error:
yarn run v1.7.0
warning ../package.json: No license field
$ yarn env-build && ./node_modules/.bin/ts-node src/index.ts
warning ../package.json: No license field
package json license: "license": "ISC",
Can anyone point me in the right direction?manticarodrigo
07/27/2018, 1:57 PMThe provided query doesn't include any known model…e. Please check for the latest subscriptions API.
And on signup
GraphQL error: Cannot query field 'signup' on type 'Mutation'. (line 2, column 3): signup(email: $email, password: $password, name: $name {
hez
07/27/2018, 2:59 PMSubscription: {
tripStatusUpdated: {
subscribe: withFilter(
() => return pubsub.asyncIterator(Events.TRIP_STATUS_UPDATED),
(payload, variables) => {
console.log('PAYLOAD: ', payload)
return payload.tripStatusUpdated.tripID === variables.tripID
},
),
},
}
This only returns the item dispatched with the event, and not the requested data from the subscription. Is there any way to request certain fields on a model from the subscription?hpartidas
07/27/2018, 5:06 PMgraphql codegen
I get the following:
graphql codegen
✖ Generating bindings for project prisma...
{ Error: Cannot find module 'typescript'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.register /project/node_modules/ts-node/src/index.ts:227:26)
at /project/node_modules/prisma-binding/src/bin.ts:54:24
at step (/project/node_modules/prisma-binding/dist/bin.js:33:23)
at Object.next (/project/node_modules/prisma-binding/dist/bin.js:14:53)
at /project/node_modules/prisma-binding/dist/bin.js:8:71
at new Promise (<anonymous>) code: 'MODULE_NOT_FOUND' }
Am I missing some dependency? Yarn / npm don't display any dependency messages. I installed typescript globally thinking that may solve the issue but it does nothing. Ultimately /node_modules/prisma-binding/src/
does not exist on the file system.hpartidas
07/27/2018, 5:19 PMnode server/index.js
/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:113
throw new Error("Directive " + directiveName + ": Couldn't find type " + directiveName + " in any of the schemas.");
^
Error: Directive pgTable: Couldn't find type pgTable in any of the schemas.
at collectDirective (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:113:23)
at Array.forEach (<anonymous>)
at collectNewTypeDefinitions (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:47:34)
at Object.completeDefinitionPool (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:23:41)
at Object.importSchema (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/index.js:87:41)
at mergeTypeDefs (/project/node_modules/graphql-yoga/dist/index.js:402:37)
at new GraphQLServer (/project/node_modules/graphql-yoga/dist/index.js:92:34)
at Object.<anonymous> (/project/server/index.js:34:23)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
This is related to the output generated by prisma introspect
command. I see the @pgTable
attribute can't find it defined anywhere. Am I missing another dependency?kratam
07/27/2018, 5:54 PMKevin S
07/27/2018, 8:00 PMKevin S
07/27/2018, 8:02 PMcliff76
07/27/2018, 9:48 PMcliff76
07/27/2018, 9:49 PMMike
07/27/2018, 10:18 PMObtaining exclusive agent lock...
The second prisma instance can’t get the lock because there are 2 instances active and it crashes. Are there any plans to make prisma work with horizontal scaling? I understand that there are issues with using the cli-based prisma deploy
model because it will only deploy to one server, but you could adopt a master/slave model where one server handles the management API and the other one just serves requests. That’s pretty much what Kubernetes does. Also, you could allow us to use prisma without the prisma CLI by just building a docker image with all our data models already included and then handling migrations separately through a CLI (likely in a one-off container/dyno) similar to heroku run rake db:migrate
or docker exec -t rake db:migrate
. That’s a probably easier for the prisma team to implement and it’s a little more devops work for your users, but anyone who wants to scale horizontally in the first place probably won’t mind the extra work.Mike
07/27/2018, 10:24 PMrwatts3
07/27/2018, 11:26 PMrwatts3
07/27/2018, 11:26 PMzak.singh
07/27/2018, 11:33 PMclayton
07/28/2018, 2:07 AMNick
07/28/2018, 9:50 AMcurl <https://codeload.github.com/howtographql/react-apollo/tar.gz/starter> | tar -xz --strip=1 react-apollo-starter/server
yarn install
then prisma deploy
gives the following errror "Cluster undefined does not exist!"Gorodov Maksim
07/28/2018, 1:22 PMullrich
07/28/2018, 2:35 PMprisma init ...
on the demo server and try it out there, but also there subscriptions seem to not fire.
My subscription looks like this:
subscription{
user{
mutation
node{
id
name
}
}
}
The mutation that creates the user succeeds and I can query the user, but the subscription in the playground is not returning any results even though being in the state of Listening ...
Is there a general service issue going on atm?zak.singh
07/28/2018, 10:41 PMvacom
07/29/2018, 1:45 PM