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
3
votes
2 answers

How to connect a Gatsby Hybrid Site to Apollo/Graphcool (or Redux)?

I'm experimenting with an idea to create a site which mixes static with dynamic content, using Gatsby as the foundation. This hybrid site would contain static marketing pages available to the public as well as several dynamic pages which would exist…
Chris Geirman
  • 9,474
  • 5
  • 37
  • 70
3
votes
2 answers

How do identify a new user using auth0-js WebAuth?

I'm trying to keep things simple and using auth0-js WebAuth to authenticate users. However, as there is a redirect involved, I'm not in control of the sign-up functionality at that point. My specific use-case is to call a createUser graphql…
Chris Paton
  • 5,113
  • 4
  • 41
  • 52
3
votes
0 answers

Apollo & Graphcool: `Insufficient permissions for this mutation` - HowTo best set connectionParams?

So, and after setting the Delete permissions of my Graphcool Comments schema to Authenticated (See image), I'm receiving the above mentioned error (See image) when attempting to delete a post comment. A user receives a token after signing in as…
TheoG
  • 1,498
  • 4
  • 30
  • 54
3
votes
2 answers

createUser update related field - understanding relation

I need to set a related field's value on create, is this possible? Details: I have a User model with fields: email, displayname. I have a Verify model with fields: code, action. I created a relation between the two models like this: I want to…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
3
votes
1 answer

Issuing authenticated queries with Graphcool

I have successfully set up Graph.cool Auth0 authentication and created a User through Relay as described here. Next I'd like to actually query graph.cool on behalf of this user. As a first step, I simply manually modified the Relay setup to specify…
2
votes
0 answers

Enums in GraphCool? How to use them? No Documentation

GraphCool doesn't have much documentation on Enums, so I am just posting my Enum info for those who could use it: Enums are arguments of an object that can only have specified values. GraphCool also, to my knowledge, requires them to be defined with…
Kevin Danikowski
  • 4,620
  • 6
  • 41
  • 75
2
votes
0 answers

syntax error: expected $, found name "authprovider"

I am running sample app. I called mutation for createUser in graphcool. But i am getting error like below screenshot. here is my code this.props .createUser({ variables: { email: this.state.email, password:…
Harika
  • 1,081
  • 3
  • 14
  • 25
2
votes
1 answer

Corresponding graphql-tag for a schema with nested inputs?

I'm following a tutorial (here:https://www.howtographql.com/graphql-js/5-authentication/) on graphql and came across a mutation with nested inputs. How would I write the corresponding graphql-tag? gql`` Schema: type Mutation { createUser(name:…
Adrian
  • 23
  • 2
2
votes
1 answer

How to "upsert" an array/nested field when issuing update mutation in Graphcool / GraphQL?

I have a Post type than has a tag field which can be associated with many Tag entries (man-to-many relationship). The issue I am running into is when updating a Post - I need to both create and associate new Tag's for tags that do not yet exist,…
Bob T
  • 318
  • 2
  • 8
2
votes
1 answer

Manage user roles with Graphcool

I'm using the template graphcool/templates/auth/email-password with Graphcool and I'd like to add the ability to manage user roles. This is my definition schema: type User @model { id: ID! @isUnique createdAt: DateTime! updatedAt:…
Emi
  • 4,597
  • 2
  • 31
  • 34
2
votes
1 answer

Methods to Populate Database Data for New User Sign Ups

Edit: I revised and deleted to clarify. The analogy goes... Every time I get a new customer, I want to automatically create 100 orders for them because I know all my customers want the same 100 items. But they need to be able to change the quantity…
Kevin Danikowski
  • 4,620
  • 6
  • 41
  • 75
2
votes
1 answer

Delphi with Graph.cool API?

How would I interface Graph.cool using Delphi? I want to build a Win32/Win64/OSX client https://Graph.cool/ has a GraphQL (REST) API end-point. Example: https://api.graph.cool/simple/v1/ENDPOINT A known example of GraphQL implementation with…
buttercup
  • 1,096
  • 16
  • 37
2
votes
2 answers

React relay injectNetworkLayer is not a function

I am following the tutorial from lynda: "Building and Deploying a Full-Stack React Application", in the chapter "Injecting the Relay Network Layer". there is in index.js, an attempt to set up a network layer, and the program compiles successfully…
WB Lee
  • 641
  • 1
  • 6
  • 10
2
votes
1 answer

GraphCool Domain Model Design - ModifiedBy attribute giving trouble

I am trying to use Graphcool to design a backend for our product. We already have the domain model for the product. The problem I am facing is with non scalar attributes where I am forced to use @relation (that too two way relation). Help me…
user1354471
2
votes
1 answer

GraphQL error: Unknown argument 'deleted' on field 'removeFromPostsOnComments'

So, I have a one to many relationship from Posts to comments: type Comments { createdAt: DateTime! deleted: Boolean id: ID! posts: Posts @relation(name: "PostsOnComments") text: String! updatedAt: DateTime! user:…
TheoG
  • 1,498
  • 4
  • 30
  • 54