Questions tagged [graphcool]

GraphQL Backend Development Framework

Graphcool is a GraphQL backend framework to develop and deploy production-ready GraphQL microservices. It currently supports Node.js & Typescript and is compatible with existing libraries and tools like GraphQL.js and Apollo Server. The framework comes with a CLI and a Docker-based runtime which can be deployed to any server or cloud.

Resources

117 questions
1
vote
1 answer

Prismy deploy command throws Invalid Version error

I'm just following the basic prisma.io get started guide (https://www.prisma.io/docs/quickstart/) When I want to run the deploy command (prisma deploy) I keep getting this error: ! Invalid Version: 1.1 Get in touch if you need help:…
bbrez1
  • 135
  • 2
  • 10
1
vote
0 answers

How to continue a network request when user moves app to the background during the request?

I am building a messaging app in react-native. I have a problem where if the user is sending a message, then puts the app into the background before my redux (thunk) action containing all the network logic finishes, the message doesn't get created…
1
vote
1 answer

A relation in graphcool makes fail the deploy for no reason

I created this relation in my graphcool type User @model { id: ID! @isUnique location: Location! @relation(name: "UserLocation") } type Location @model { id: ID! @isUnique lat: Int lng: Int User: User! @relation(name:…
Kaiser Soze
  • 1,362
  • 3
  • 14
  • 31
1
vote
0 answers

GraphQL: How to structure mutation to add an item to a list of ints?

I am using graph.cool and Apollo. This is a simplified schema below. I want to add an int to the list and compute a new average. GraphQL Schema for a Test model. How would I add another int to the list property? type Test @model { id: ID!…
Josh Birdwell
  • 745
  • 4
  • 21
1
vote
0 answers

Auth0 Graph.cool Invalid The provided idToken is invalid

I am developing a react native mobile app using auth0 and graph.cool. I've configured the client credentials properly within graphcool. When I try to create a new user by calling the createUser mutation with the id_token received back from auth0 I…
Victor Altadonna
  • 193
  • 2
  • 10
1
vote
1 answer

Can't find field allProjects({"first":5,"skip":0,"orderBy":"updatedAt_DESC"}) on object (ROOT_QUERY)

So I am trying to create a new project ( a object in my project ), I am using Apollo Client, Angular 5 and graphcool framework. I just want to mention that I the project is created and saved in the data base, but I want than my app to redirect me…
P3P5
  • 923
  • 6
  • 15
  • 30
1
vote
1 answer

Query elements where relationship is null

If I have a simple schema like: type Author @model { id: ID! @isUnique posts: [Post!]! @relation(name: "AuthorOfPost") } type Post @model { id: ID! @isUnique author: Author @relation(name: "AuthorOfPost") } How can I query all Posts that…
Peter Albert
  • 16,917
  • 5
  • 64
  • 88
1
vote
1 answer

GraphQL/Graph.cool Query filter nested relation

I'm a newbie to graphql / graphcool, so this might be simple, but haven't found a solution for this in the documentation or here. I have a "Product" model with one to many relations on "Bid" model I want to to get all the bids for at product, but…
pkdkk
  • 3,905
  • 8
  • 44
  • 69
1
vote
1 answer

Apollo query runs on page refresh but not with react router navigation?

Im using React, Apollo and Graphcool. I have an account page where I need to query the logged in users details: const loggedInUser = gql` query { loggedInUser { id } } `; Logging in is done on a separate page.…
Evanss
  • 23,390
  • 94
  • 282
  • 505
1
vote
3 answers

Cant connect React to Graphcool backend

Im trying to get a basic React + Graphcool project setup. Ive initialised the Graphcool backend so I can see the playground at: https://api.graph.cool/simple/v1/MY-KEY I can run this query in the playground and see results: query { allGroups…
Evanss
  • 23,390
  • 94
  • 282
  • 505
1
vote
1 answer

Graphcool-framework cli on local: "Unknown flag –schema"

I was following a video tutorial on GraphQL and React. The tutorial initializes graphcool-framework using this command: graphcool-framework init --schema https://graphqlbin.com/hn-starter.graphql --name Hackernews When I executed this command, I…
Davaakhuu
  • 238
  • 3
  • 6
1
vote
2 answers

graphcool: command not found (locally on Mac)

I am installing graphcool locally on my Mac which I think has gone ok: $ sudo npm install -g graphcool npm WARN deprecated jsonstream@1.0.3: use JSONStream instead npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for…
Evanss
  • 23,390
  • 94
  • 282
  • 505
1
vote
2 answers

I get this error when trying to connect to a graphcool relay API from a react app: Module build failed: Error: No valid GraphQL endpoint

I am following a tutorial from Lynda.com 'Deploying a fullstack react application'. I am using the 'create-react-app project to scaffold my project. For some unknown reason, my app can't access the api, which I can access directly without any issues…
1
vote
1 answer

How to Catch Errors from Apollo/GraphQL

I use graphCool as a backend, but there is a bug which won't be fixed any time soon. Making a delete mutation on File schema will always throw this error (not a big deal): "GraphQL error: Whoops. Looks like an internal server error. Please contact…
Kevin Danikowski
  • 4,620
  • 6
  • 41
  • 75
1
vote
0 answers

how do one gets access to the MySQL-DB created by graphcool cli deploy

I am quite new to graphcool as a framework and i like that i can run it locally now. To get access from backend side to the cluster, what do i need to do? gc deploy -dev exposes some endpoints on localhost:60000. and lsof -i :60000 shows two…
Paulquappe
  • 144
  • 2
  • 6
  • 15