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

WrappedComponent is undefined

I am stuck trying to implement graphql with react-apollo and graphcool. I am following this Tutorial My code with the request query looks like this : import React from 'react'; import { graphql } from 'react-apollo' import gql from…
Etienne
  • 21
  • 8
1
vote
0 answers

1.Structuring my GraphCool Schemas. 2.How to have @Relation value different for each User?

I'm having difficulty knowing how to write my data/Schema structure and would appreciate any recommendations. If you could solve the question on bottom that would be super helpful! I am using GraphCool and have 4 Schema's: User, Parameter, Industry,…
Kevin Danikowski
  • 4,620
  • 6
  • 41
  • 75
1
vote
1 answer

Database migration from dev to production in Graphcool

I have a mobile app frontend using Graphcool as the backend. I currently have two Graphcool project, one for production and the other one for dev. Now I need to migrate the dev version of the database to the production one. To be specific, I need to…
afterglowlee
  • 11,670
  • 5
  • 22
  • 23
1
vote
0 answers

What is the correct mutation class code for Graphcool createUser Mutation?

I'm getting started with Relay and GraphCool and have trouble creating the createUser Mutation with Relay. This is my current code: import Relay from 'react-relay'; class SignupUserMutation extends Relay.Mutation { getMutation() { return…
SimonEritsch
  • 1,047
  • 1
  • 8
  • 22
1
vote
2 answers

GraphQL, Redux, React. Saving state on intervals

Hello all, I'm building a 'complex' social english vocabulary 'game' in React/Redux and GraphQL/GraphCool Is it a best practice to save all the state only to redux while the app is active, and only dispatch the user/game state to the backend in like…
1
vote
1 answer

ApolloClient: Refactor updateQueries to work with this.props.client.mutate

Note: As the process for handling mutation/query/cache updates is now addressed by update, I am no longer using uodateQueries, making this question no longer relevant. So, I have a one to many relationship from Posts to Comments: type Comments { …
TheoG
  • 1,498
  • 4
  • 30
  • 54
1
vote
1 answer

Create a mutation which takes multiple values of an ENUM

I've created a model that has a field which takes multiple values of an ENUM. How can I write a mutation which will allow me to add multiple values at once? For example, I have a sign up mutation: export const signUp = gql` mutation signUp( …
vinspee
  • 335
  • 1
  • 8
1
vote
2 answers

Meta data values of "Enum"

I created a field in a model named "Listing". The field in here is "category". This is set to enum of some values (screenshot below). Does graphql allow to query to fetch the enum list?
Noitidart
  • 35,443
  • 37
  • 154
  • 323
1
vote
1 answer

Multiple relation between two models

I have two databases/models User and Listing. I am trying to create two relations: One User to one Listing called "ListingOwner" One User to many Listing called "ListingCreator" My users can create multiple listings. I want to keep that as…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
1
vote
1 answer

How do I return the id property of the user object in Apollo?

When I place the below in a React component that queries the user model I am able to get the entire user object as queried by graphQL including the id property: console.log(this.props.data.user) But when I try to access the id property from…
Joseph Barnes
  • 620
  • 5
  • 10
1
vote
1 answer

400 error when trying to create a new user via createUser Mutation

When attempting to create a new user with the createUser mutation having just received the idToken from the Auth0 request, I receive the following error: { "data": null, "errors": [{ "message": "Variable '$input_0' expected value of type…
Tapjay
  • 70
  • 6
0
votes
0 answers

TKinter CSV file with common header

Anybody know this error Traceback(most recent call last): File"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkint __init__.py", line 1883, in __call__ return self.func(*args) File "projtk.py", line 125,…
Ar Yan
  • 1
0
votes
1 answer

Graphcool Mutation changing fields that are not supose to change

i'm having a problem with mutation using graphcool and apollo client, on my application, i had a soft delete type of funcionality, where the user clicks on delete and the app runs a mutation to change only one field on database named deletedAt, with…
0
votes
1 answer

How to use graphql api with react frontEnd?

I have graphcool api endpoint, now I want to implement frontEnd for it If you know how to get started with reactjs-graphcool give references
Anuj raval
  • 13
  • 5
0
votes
0 answers

Graphcool RELAY Subscription: subscribe to edges

subscription updateListSubscription { User(filter: {mutation_in: [CREATED]}) { mutation node { id name addressList{ edges { node { …