Hi I want to create schema for friends functionality. Where logged in user can send friend request to registered users. I have 2 table users and relation and can be able to get own friends. Its working in redux and react with node mysql. But I don’t know how i can achieve the same in GraphQL. I am using GraphQL prisma now using GraphQL cli
Graphql schema for add friends
783 Views Asked by Pardip Bhatti At
1
There are 1 best solutions below
Related Questions in GRAPHQL
- How to define Relay fragment for GraphQLList of GraphQLObjectType?
- relayjs: Attempted to add an ID already in GraphQLSegment:
- Authorization in GraphQL servers
- How does graphql-java library execute Relay requests?
- GraphQL or REST
- relayjs and graphql error: Error: "Node" expects field "id"
- unable to render nested props from Github's GraphQL
- Single-Page App Sharing Relay Variables
- Relay and ReactJS give an error when connecting to Github's GraphQL
- Why does Relay need a mutation id to reconcile GraphQL mutations?
- GraphQL mutation operation in single transaction
- Documenting GraphQL short-hand model
- How to build a GraphQL API on top of a Django/Elasticsearch/MySQL backend?
- How to get all user model with GraphQL
- How to fetch data with apollo and react native
Related Questions in PRISMA-GRAPHQL
- how to delete relational item in prisma2
- GraphQL nested query arguments?
- Prisma 2 query relation return null
- Error Assertion `args[3]->IsInt32()' failed
- What Does '?' Mean When Defining Prisma Schema Model?
- argument Where of type xxxxxx is required, but it was not provided
- TypeError with Pothos Graphql and prisma-plugin
- Facing Vulnerability on prisma-client-lib-1.34.12
- I am facing performance issues with Prisma with MONGODB. How can I improve the performance?
- Node Js - AWS signal: aborted (core dumped)
- How to search M to N relationship in prisma?
- Anyone able to get prisma.io working on the new Apple Silicon M1 devices?
- How to use graphql-request's batching via the batchRequests() function in redux-saga?
- Error: Command failed with exit code 3221225781: ... \prisma\query-engine-windows.exe cli get-config --ignoreEnvVarErrors
- Prisma - How to define compound unique constraint with fields in multiple models?
Related Questions in GRAPHQL-MUTATION
- Graphql_flutter runMutation's QueryResult is returning null, though the mutation is executing correctly
- Can you update existing data with an Array of objects using a mutation serverside with Apollo GraphQL?
- Is it possible to define an Object inside InputType? or can i define an InputType inside an InputType?
- How to execute a directive before a mutation is committed to the database?
- How can we parse and modify a schema with makeAugmentedSchema
- Passing Objects as Argument to GraphQL Mutation (graphql-request)
- Updating model with GraphQL Mutation
- Could not resolve any of the following components: [JsonGraphqlForm]
- Graphql_flutter mutation running on playground doesn't work on running device/emulator
- Error: Identifier already been declared. How can it be resolved?
- Graphql schema for add friends
- What is the $condition input parameter for in a GraphQL mutation generated by AWS Amplify CLI?
- TypeORM TypeGraphQL OneToOne relation foreign key not working
- Executing a Mutation with GraphQL in Google App Script
- How can I can not raise error in mutations with graphene django?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I suggest you learn about GraphQL here: https://graphql.org/learn/ and then about Prisma here: https://www.prisma.io/docs/
This will help you understand how to create a GraphQL Schema for your needs and how to use Prisma to abstract the database access