Questions tagged [prisma-graphql]

Prisma turns your database into a GraphQL API.

Prisma lets you design your data model and have a production ready GraphQL API online in minutes.

The Prisma GraphQL API provides powerful abstractions and building blocks to develop flexible, scalable GraphQL backends.

416 questions
0
votes
1 answer

Prisma query fields where value is a string or ID

Sorry, brand new to Prisma queries and trying to figure out the query language syntax. Given the following call made from my GraphQL / Prisma backend, I'm looking to query {parent: String}. Anything non-null will work here, String isn't accepted,…
Brian
  • 3,920
  • 12
  • 55
  • 100
0
votes
1 answer

How to Define a Schema for the Relationship of Events, Teams, and Members

In Prisma, I'd like to model the following but I'm not really sure how. type Event { id: ID! @unique players: [User]! @relation(name: "EventPlayers") teams: [Team]! @relation(name: "EventTeams") ... } type User { id: ID! @unique …
Chris Geirman
  • 9,474
  • 5
  • 37
  • 70
0
votes
1 answer

ERROR in Docker Installation on Linux Ubuntu 18.04

I'm really new to docker and having problem in installation. I have used all the things available on internet, also installed it twice to check and also used the --fix-missing flag. The main problem is this, After this installation if I'm running…
Rehan Sattar
  • 3,497
  • 4
  • 13
  • 21
0
votes
0 answers

Access input in GraphQL Prisma Directive

I have a use case where in I want to access query parameter/arguments in the directive. Following is the schema. user(where: UserWhereUniqueInput!): User @isAuthenticated Query that is fired from playground user(where:{id: "test001"}){id…
Niks
  • 885
  • 1
  • 7
  • 17
0
votes
1 answer

Can i use MongoDB in my graphQL server without the use of prisma?

I want to use mongodb queries directly without the prisma. Is it possible? If possible, is this a good practice and will i be able to use all the functionalities of graphql, Like cursor based pagination and others?
0
votes
2 answers

Combine Prisma Query with Non-Prisma Data

OK so I have the following types, with the "Spot" type coming from prisma. type Query { SpotDetails(id: ID!, lat: String, long: String, regLocation: String): SpotDetails! Spots: [Spot!]! } type SpotDetails { info: Spot! regulations:…
Seldon Stone
  • 474
  • 1
  • 5
  • 16
0
votes
1 answer

Prisma - Graphql queries on preloaded mysql database returning empty

Looking for how to debug this or a reason why it might be returning empty. I'm using Prisma graphql with a mysql databse and I was able to preload the database with data and then set up the schema to match the database. For example I have the…
canpan14
  • 1,181
  • 1
  • 14
  • 36
0
votes
1 answer

(graphql, prisma) How can i ingnore(pass) check auth when login(signin)?

I have a problem creating graphql server and checking auth. I automatically created schemas with Prisma, and I manually added to the schema by creating a 'signin' mutation. I have also added the jwt checking (auth) middleware, as shown in the…
Jyos1426
  • 1
  • 2
0
votes
1 answer

GraphQL data modelling - extended types (Prisma)

In my Prisma Data Model I started out with a basic User type like this: type User { name: String! email: String! @unique password: String! } Now a User can have two roles: either as a candidate or as a user associated with an employer. If a…
Lars Holdaas
  • 691
  • 1
  • 4
  • 24
0
votes
1 answer

Share fragments between client and server

I've got a bunch of graphQL fragments set up in my React/Apollo app, but I really need to access them on my Node server. For example, in my client I'm attempting to do this query, to get all relevant Person and Company entities: query…
MitchEff
  • 1,417
  • 14
  • 29
0
votes
1 answer

GraphQL API with Prisma and Zeit.now. Can't connect to server error

I am attempting to deploy a GraphQL API along with Prisma and using Zeit.now. I am following the prisma.io documentation and keep hitting a brick wall when I get to the deployment with "now" final step. When I navigate to the now.sh url after…
gruss
  • 65
  • 1
  • 10
0
votes
1 answer

Is there any local GraphQL database for react-native?

I use graphql-yoga for server and prisma for GraphQL database on my backend, now I'm looking for local GraphQL database but I couldn't find anything and I'm afraid that there is no local GraphQL database for react-native :(
user9436591
0
votes
1 answer

How can I look at Prisma.io DB hosted logs

I have a prisma.io instance where I have a local graphql server, and a remote DB (hosted at prisma.io). I am getting an error on a request with an id and a message stating [GraphQL error]: Message: Whoops. Looks like an internal server error.…
Zacho
  • 831
  • 11
  • 19
0
votes
1 answer

GraphQL mutation throwing error

Update I've narrowed down to where the error is being thrown and it seems to be a Prisma issue. The error occurs here within the vote function: const linkExists = await context.db.exists.Vote({ user: { id: userId }, link: { id: args.linkId…
itsclarke
  • 8,622
  • 6
  • 33
  • 50
0
votes
1 answer

How to get data from MySql relation table in Prisma

In datamodel.graphql type Ride { rideId: String productId: String passenger: Passenger origin: Origin destination: Destination dateTime: DateTime feedback: String } type Passenger { id: ID! @unique firstName: String lastName:…
John Davis
  • 413
  • 5
  • 12
1 2 3
27
28