【问题标题】:Graphql schema for add friends用于添加朋友的 Graphql 架构
【发布时间】:2019-04-26 11:49:55
【问题描述】:

您好,我想为好友功能创建架构。登录用户可以向注册用户发送好友请求。我有 2 个表用户和关系,并且可以得到自己的朋友。它在 redux 中工作并与节点 mysql 作出反应。但我不知道如何在 GraphQL 中实现同样的效果。我现在正在使用 GraphQL cli 使用 GraphQL prisma

【问题讨论】:

    标签: graphql prisma-graphql graphql-mutation


    【解决方案1】:

    我建议您在此处了解 GraphQL:https://graphql.org/learn/,然后在此处了解 Prisma:https://www.prisma.io/docs/

    这将帮助您了解如何根据需要创建 GraphQL Schema,以及如何使用 Prisma 来抽象数据库访问

    【讨论】:

    • 这不是我期待的答案
    猜你喜欢
    • 1970-01-01
    • 2021-11-07
    • 1970-01-01
    • 2015-10-21
    • 1970-01-01
    • 1970-01-01
    • 2012-10-29
    • 1970-01-01
    • 2011-08-10
    相关资源
    最近更新 更多