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
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
  • 885
  • 1
  • 7
  • 17
5
votes
1 answer

How to approach subscriptions in React app

I need some help to figure out what is a general approach on subscriptions and real-time updating. I have a React Native app and using Apollo and Graphcool service as a backend. There are a couple scenarios where user looking at the app receives a…
FredyC
  • 3,999
  • 4
  • 30
  • 38
4
votes
0 answers

Authenticate graphcool-yoga with Passport

I am working on a project using graphcool-yoga with prisma bindings. Want to set up authentication using passport's Local, Bearer, Github and Twitter strategy. Here's what my graphql query looks like user: (root, args, context, info) => { const { id…
Bharat Chhabra
  • 1,686
  • 2
  • 14
  • 20
4
votes
0 answers

naming your graphql mutations in react-apollo

consider the following const createBob1 = gql` mutation createBob2($var: data) { createBob3(var: $var) { id } } ` at three levels, we're naming the mutation: createBob1 defines the graphql document createBob2…
Anthony Chung
  • 1,467
  • 2
  • 22
  • 44
4
votes
1 answer

GraphQL query filter by current timestamp

I'm wondering what would be a nice solution to filter GraphQL queries by the current timestamp, e.g: query { appointments(createdAt: today) { } } or query { appointments(createdAt_gte: now) { } } Is it recommended to create my own resolver…
sinned
  • 698
  • 1
  • 7
  • 17
4
votes
1 answer

Get random element from Graphcool?

Is it possible to return a random graphql element from a Graphcool backend? If so, how could this be done? Alternatively, any tips on howto create custom queries for Graphcool backends?
William Pfaffe
  • 305
  • 4
  • 16
4
votes
1 answer

Subscribe to one GraphQL item

Using GraphCool for my GraphQL backend, I would like to know how to subscribe to only a single item given the ID. I've been looking at the docs and trying to use filters, but I still can't figure it out. If I wanted to subscribe to all item…
Funk Soul Ninja
  • 2,113
  • 3
  • 17
  • 27
4
votes
1 answer

Relay Modern node does not contain fragment properties

I have the following setup in my React Project: export default class OverviewScreen extends React.Component { public render() { return (
Jonathan
  • 516
  • 5
  • 20
4
votes
1 answer

Only allow user to edit own content in Graphcool permissions

I have followed the steps of setting up the Introduction Project at https://www.graph.cool/. In the permissions section for the project I can see and edit the permissions for e.g. Posts: When clicking the row that shows that Everyone can Edit Data…
ArneHugo
  • 6,051
  • 1
  • 26
  • 47
3
votes
0 answers

Building a react-admin data provider for FaunaDB

With Graphcool being sunsetted, I've been trying to get react-admin to work with Fauna, but have not been successful. The Fauna GraphQL grammar is different than Graphcool, and of course when I connect to my Fauna DB, it doesn't recognize any of…
GeekLad
  • 468
  • 4
  • 8
3
votes
0 answers

Using prisma client with resolvers of relations

I am using prisma client in my graphql server. Following best practices, I made the resolver layer just a thin layer that delegates the actual fetching of data to a data access layer. The data access layer also does things like authorization and…
brafdlog
  • 2,642
  • 1
  • 18
  • 21
3
votes
1 answer

Prisma orderBy in a resolver/query outside of Playground

Okay, so I've been working with Prisma for a couple weeks now, and have made some great progress and I love the setup/ease of use of getting a lot of advanced features implemented. I'm at the point I'm trying to implement sorting on table fields. I…
himerus
  • 51
  • 5
3
votes
1 answer

Graphcool (Graphql): how to make exact filter in array of Id

I have chat model type Chat @model { id: ID! @isUnique name: String messages: [Message!]! @relation(name: "ChatMessages") users: [User!]! @relation(name: "ChatUser") createdAt: DateTime! } And I've created a chat with two people…
Vendicto
  • 95
  • 8
3
votes
1 answer

GraphQL/graphcool - Mutation for relation

I am having difficulties figuring out how to make a relation mutation using graph cool. My schema looks like this: type Team @model { id: ID! @isUnique name: String players: [Player!]! @relation(name: "TeamPlayers") } type Player @model { …
peter flanagan
  • 9,195
  • 26
  • 73
  • 127
3
votes
1 answer

Apollo-client - Error: Can't find field allLinks({}) on object (ROOT_QUERY)

OS: Windows 10 Pro Browser: Opera 47.0.2631.71 (PGO) apollo-client: 1.9.2 subscriptions-transport-ws: 0.6.0 vue: 2.4.2 vue-apollo: 2.1.0-rc.5 So, I'm experiencing the above mentioned error when attempting to run a query with a graphcool endpoint.…
TheoG
  • 1,498
  • 4
  • 30
  • 54