【发布时间】:2019-04-26 11:49:55
【问题描述】:
您好,我想为好友功能创建架构。登录用户可以向注册用户发送好友请求。我有 2 个表用户和关系,并且可以得到自己的朋友。它在 redux 中工作并与节点 mysql 作出反应。但我不知道如何在 GraphQL 中实现同样的效果。我现在正在使用 GraphQL cli 使用 GraphQL prisma
【问题讨论】:
标签: graphql prisma-graphql graphql-mutation
您好,我想为好友功能创建架构。登录用户可以向注册用户发送好友请求。我有 2 个表用户和关系,并且可以得到自己的朋友。它在 redux 中工作并与节点 mysql 作出反应。但我不知道如何在 GraphQL 中实现同样的效果。我现在正在使用 GraphQL cli 使用 GraphQL prisma
【问题讨论】:
标签: graphql prisma-graphql graphql-mutation
我建议您在此处了解 GraphQL:https://graphql.org/learn/,然后在此处了解 Prisma:https://www.prisma.io/docs/
这将帮助您了解如何根据需要创建 GraphQL Schema,以及如何使用 Prisma 来抽象数据库访问
【讨论】: