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

118 questions
24
votes
3 answers

Docker could not find plugin bridge in v1 plugin registry: plugin not found

I am trying to run this command with graphcool: graphcool-framework local up And I am getting this error from Docker, docker could not find plugin bridge in v1 plugin registry: plugin not found My version of Docker is version 18.03.0-ce What is…
P3P5
  • 743
  • 3
  • 10
  • 28
24
votes
2 answers

How to chain two GraphQL queries in sequence using Apollo Client

I am using Apollo Client for the frontend and Graphcool for the backend. There are two queries firstQuery and secondQuery that I want them to be called in sequence when the page opens. Here is the sample code (the definition of TestPage component is…
afterglowlee
  • 9,680
  • 5
  • 17
  • 23
11
votes
2 answers

How to send GraphQL mutation from one server to another?

I would like to save some Slack messages to a GraphQL backend. I can use the Slack API and what they call "Slack App Commands" so everytime a message is send to my Slack channel, Slack will automatically send a HTTP POST request to my server with…
Damien Monni
  • 1,043
  • 2
  • 10
  • 19
11
votes
2 answers

GraphQL: Filter data in an array

I'm sure it's a simple thing to do, but I couldn't find anything in either GraphQL's doc or Graphcool's. Say I have an entity with this schema (new GraphQL user, sorry if I make mistake in the schema representation): Book { name: String! author:…
gCardinal
  • 492
  • 1
  • 6
  • 25
10
votes
1 answer

Auth0's universal login with Graphcool?

I am trying to set up Auth0's universal login with my Graphcool, Apollo and React app. My site is a SPA statically hosted with Netlify. I am using Graphcool's official Auth0 template:…
Evanss
  • 17,152
  • 66
  • 217
  • 397
10
votes
2 answers

Make one of two fields required in GraphQL schema?

Im using Graphcool but this may be a general GraphQL question. Is there a way to make one of two fields required? For instance say I have a Post type. Posts must be attached to either a Group or to an Event. Can this be specified in the schema?…
Evanss
  • 17,152
  • 66
  • 217
  • 397
9
votes
2 answers

Apollo / Graphcool Subscriptions - WebSocket is closed before the connection is established

I'm trying to set up a graphcool subscription / websockets as per this tutorial at How To GraphQL but I'm getting the following message: WebSocket connection to 'wss://subscriptions.graph.cool/v1/###' failed: WebSocket is closed before the…
Ryan King
  • 2,798
  • 9
  • 37
  • 62
9
votes
2 answers

Add an array of Objects to a mutation in apollo-react

I am using react-apollo on the front-end and graphcool on the backend. I have a mutation that creates a tutorial like so: const CREATE_TUTORIAL_MUTATION = gql` mutation CreateTutorialMutation( $author: String $link: String $title:…
Josh Pittman
  • 5,021
  • 4
  • 26
  • 51
6
votes
1 answer

Upload image from data url to Axios?

Ive been uploading image files to an API (Graphcool) with this, and everything was working fine: fileUpload(file) { let data = new FormData(); data.append('data', file); axios …
Evanss
  • 17,152
  • 66
  • 217
  • 397
6
votes
2 answers

how to parse graph cool service in android

I want to parse the graph Cool service in android. I am unable to parse the data. here is the URL: https://api.graph.cool/simple/v1/cj8dyjr0144dk33b7pz have to parse this service mutation { updateLocation( id:"cjck0maq9q7ovs54z", …
Lassie
  • 974
  • 6
  • 23
6
votes
1 answer

How to create nested nodes in one mutation?

Hi I am trying to write data on my https://www.graph.cool/ db with a mutation. My project is a React web-app and I am using Apollo as graphql client and graphql-tag npm package as template literal parser. The problem is that i don't know how to…
Alessandro Annini
  • 1,461
  • 1
  • 15
  • 30
5
votes
0 answers

How to compare two fields of same node while filtering in a graphql query?

I have a model named as Student and want to filter out those students who have equal marks in physics and chemistry.The student schema is as follows. type Student @model { name: String! physicsMarks: Int! chemistryMarks: Int! createdAt:…
5
votes
0 answers

Project not found: 'my-app@dev'

I am following https://www.graph.cool/docs/1.0/quickstart/backend/typescript/typescript-rohd6ipoo4 for graphcool and I an getting the error { "errors": [ { "code": 3016, "requestId": "api:api:cjc7gf91e002v0180uq2hqace", "message":…
Niks
  • 765
  • 1
  • 5
  • 17
5
votes
1 answer

GraphQL conditiontal Filter

Using a GraphCool backend, is there a way to have conditional filter in a query? let's say I have a query like this: query ($first: Int, $skip: Int, $favorited: Boolean) { allPhotos ( first: $first skip: $skip filter: { …
Funk Soul Ninja
  • 1,591
  • 2
  • 15
  • 25
5
votes
1 answer

Graphcool / GraphQL create mutation with relation

I have the following GraphQL schema. It has Books and Authors with a many to many relationship. How do I create a new Book mutation for an existing Author? schema type Author implements Node { books: [Book!]! @relation(name: "BookAuthors") …
Ryan King
  • 2,798
  • 9
  • 37
  • 62
1
2 3 4 5 6 7 8