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
0
votes
1 answer

orderBy: the results from update cache query

Working on a react apollo graphcool project I've got my mutation update working, however I would like to filter the results, the results only filter on page refresh? Looking at cache.writeQuery() the docs say get the query and concat to that so i…
Andrew
  • 105
  • 2
  • 9
0
votes
1 answer

nested object in graphcool

I have a model like this: type User @model { id: ID! @isUnique } Now I want to add a nested object: type User @model { id: ID! @isUnique position: { lat: Int lng: Int } } but I get a error from Graphcool, {",…
Kaiser Soze
  • 1,362
  • 3
  • 14
  • 31
0
votes
1 answer

Adding field to Graphcool email-password template mutation

I used the email-password template to setup my graphcool server with user authentication. I want to add a property for “name” when signing up a new user. I added name to the User model and updated the signup.graphql and signup.ts code as shown…
Jack Doyle
  • 23
  • 4
0
votes
1 answer

GraphCool TypeError: Converting circular structure to JSON

I copy-pasted example from official documentation in hope that I will see some different error (invalid URL or invalid auth key or something similar) However I get some webpack/sandbox error: const fetch = require('isomorphic-fetch') const Base64 =…
Michal
  • 4,952
  • 8
  • 30
  • 63
0
votes
1 answer

graphql: adding a field to a join table

I have two sets of records with the following schema type Player { id: ID! @unique name: String! links: [NPC!]! @relation(name: 'linkedNpcs') } type NPC { id: ID! @unique name: String! playerLinks: [Player!]!…
Anthony Chung
  • 1,467
  • 2
  • 22
  • 44
0
votes
1 answer

GraphQL/GraphCool Why do coordinates don't work with FLOAT?

I'm currently working on GraphQL/GraphCool wrapping a RestAPI, but when I write my resolver with Float in order to extract latitude and longitude as floats I get the following error: "code": 5004, "message": "Returned JSON Object does not…
ricardoNava
  • 685
  • 1
  • 7
  • 26
0
votes
1 answer

graphql/graphcool: How to write a mutation that links both a one:one and a one:many relationship

I have a schema as follows: type Artist @model { id: ID! @isUnique createdAt: DateTime! updatedAt: DateTime! name: String! @isUnique songkickId: String shows: [Show!]! @relation(name: "ArtistShow") } type Show @model { id: ID!…
fox
  • 15,428
  • 20
  • 55
  • 85
0
votes
0 answers

Scraping a website into graph.cool from a json file

I'm building a site that scrapes The List, a collection of upcoming concerts in the SF Bay Area in order to power an application that serves the listings up in a modern web GUI. Right now, I have a web worker that writes to disk a claim that has a…
fox
  • 15,428
  • 20
  • 55
  • 85
0
votes
1 answer

Logged in state doesn't reactively update in React, Apollo Client 2, Graphcool

Im using React, Apollo Client 2 and Graphcool. Ive implemented a login form. On the login page either a login form or a logout button are shown depending on weather the client is logged in. My code works but does not update reactively. After a user…
Evanss
  • 23,390
  • 94
  • 282
  • 505
0
votes
1 answer

View rows and tables for my data in Graphcool?

With Graphcool is it possible to view the SQL database to see your tables, rows, items etc? My application will use GraphQL queries (obviously!) but as an admin it would be handy for me to be able to see my entire database. { allGroups{ …
Evanss
  • 23,390
  • 94
  • 282
  • 505
0
votes
1 answer

React GraphQL Apollo and Redux. How to query data and place it in initialState of the store?

How can I get the data from GraphQL/Apollo in my Redux store ? Here is my entry file. ... render( (
Gab
  • 2,216
  • 4
  • 34
  • 61
0
votes
1 answer

duplicated items with mutation graph cool / graphql

I am using graphcool / graphql and want to add Player to a Team. My schema looks like the following: type Team @model { id: ID! @isUnique name: String players: [Player!]! @relation(name: "TeamPlayers") fixtures: [Fixture!]! @relation(name:…
peter flanagan
  • 9,195
  • 26
  • 73
  • 127
0
votes
2 answers

How to define a GraphQL type model that contains complex objects?

I am using the Facebook Graph API's data to get the user info and create my user in the GraphQL service (graphcool). function createGraphcoolUser(facebookUser) { return api.request(` mutation { createUser( facebookUserId:…
Gab
  • 2,216
  • 4
  • 34
  • 61
0
votes
1 answer

graphcool-framework deploy error 'ECONNREFUSED'

I am getting an error in the GraphCool 5 minute tutorial https://www.graph.cool/docs/quickstart/frontend/react/apollo-tijghei9go graphcool-framework deploy Please choose the cluster you want to deploy to: shared-ap-northeast-1 Please choose the…
JAstuccio
  • 1,502
  • 2
  • 18
  • 20
0
votes
1 answer

How can I get signed S3 url using Node/Typescript?

Using Node + aws-sdk in a FaaS, I'm trying to get a presigned url to upload a file to an S3 bucket. When I upload the file I get the following response InvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records. //…
Blackstone4
  • 681
  • 1
  • 9
  • 21