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
33
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
  • 923
  • 6
  • 15
  • 30
31
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
  • 11,670
  • 5
  • 22
  • 23
17
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
  • 632
  • 2
  • 9
  • 27
16
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,418
  • 3
  • 15
  • 25
13
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
  • 23,390
  • 94
  • 282
  • 505
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
  • 23,390
  • 94
  • 282
  • 505
10
votes
3 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
  • 3,538
  • 12
  • 48
  • 72
9
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
  • 2,113
  • 3
  • 17
  • 27
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
  • 7,024
  • 7
  • 38
  • 66
8
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,531
  • 2
  • 17
  • 32
7
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
  • 23,390
  • 94
  • 282
  • 505
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
  • 984
  • 11
  • 25
6
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
  • 3,538
  • 12
  • 48
  • 72
6
votes
1 answer

How to update all records in a collection using graphql

I'm using Graph.cool graphql as a service and am wondering how to do a mass update to the collection, similar to a SQL update. In my case I need to update the suffix of a url, in the imageUrl column of my database. I need to swap out a…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
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:…
1
2 3 4 5 6 7 8