• [译]保护你的GraphQL API,以防恶意查询

    时间:2022-06-01 13:01:03

    Max Stoiber是Spectrum的在线社区实时聊天平台的首席技术官。 在这篇文章中,他描述了他们是如何在攻击中保护GraphQL API。使用GraphQL,你可以随时查询想要的内容。 这对于使用API来说是惊人的,但也具有复杂的安全隐患。 恶意攻击者可能会提交耗时的嵌套查询来超载你的服务器...

  • ASP.NET Core使用GraphQL第二章之中间件

    时间:2022-04-11 00:59:09

    这篇文章主要给大家介绍了关于ASP.NET Core使用GraphQL第二章之中间件的相关资料,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

  • 转 How do GraphQL remote schemas work

    时间:2022-04-05 00:54:47

    文章转自prisma官方博客,写的很不错Inthisarticle,wewanttounderstandhowwecanuse any existingGraphQLAPIandexposeitthroughourownserver.Inthatsetup,ourserversimply forwa...

  • 朱晔的互联网架构实践心得S2E5:浅谈四种API设计风格(RPC、REST、GraphQL、服务端驱动)

    时间:2022-03-28 01:10:16

    WebAPI设计其实是一个挺重要的设计话题,许多公司都会有公司层面的WebAPI设计规范,几乎所有的项目在详细设计阶段都会进行API设计,项目开发后都会有一份API文档供测试和联调。本文尝试根据自己的理解总结一下目前常见的四种API设计风格以及设计考虑点。RPC这是最常见的方式,RPC说的是本地调用...

  • django使用graphql的实例

    时间:2022-02-22 05:39:17

    这篇文章主要介绍了django使用graphql的实例,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧

  • dinoql 使用graphql 语法查询javascript objects

    时间:2021-12-31 11:34:40

    dinoql是一个不错的基于graphql语法查询javascriptobjects的工具包,包含以下特性graphql语法(很灵活)安全的访问(当keys不存在的时候,不会抛出运行时错误)别名支持(可以重命名查询的keys)内置了一些resolvers(类似graphql)片段支持(方便查询的复用...

  • 转 GraphQL Schema Stitching explained: Schema Delegation

    时间:2021-11-28 01:21:16

    转自官方文档Inthe lastarticle,wediscussedtheinsandoutsofremote(executable)schemas.Theseremoteschemasarethefoundationforasetoftoolsandtechniquesreferredtoas ...

  • GraphQL Gateway Architectures

    时间:2021-11-07 01:32:43

    转自: https://tomasalabes.me/blog/graphql/node/microservices/2018/08/11/graphql-architectures.htmlGraphQLGatewayArchitecturesThesearetheapproacheswewill...

  • GraphQL入门3(Mutation)

    时间:2021-11-07 01:32:13

    创建一个新的支持Mutation的Schema.varGraphQLSchema=require('graphql').GraphQLSchema;varGraphQLObjectType=require('graphql').GraphQLObjectType;varGraphQLString=r...

  • [GraphQL] Query Local and Remote Data in Apollo Link State

    时间:2021-11-07 01:32:37

    Inthislesson,youwilllearnhowtoquerylocalandremotedatainApolloLinkStateinthesamecomponent.We'llsetthe @client decoratoronthelocalclientStatevariableand...

  • [GraphQL] Write a GraphQL Schema in JavaScript

    时间:2021-10-30 02:11:59

    WritingoutaGraphQLSchemainthecommonGraphQLLanguagecanworkforsimpleGraphQLSchemas,butasourapplicationgrows,orwhenwestartusingmorecomplextypeslikeinterf...

  • Modularizing your graphQL schemas

    时间:2021-10-30 02:12:23

    转自: https://tomasalabes.me/blog/nodejs/graphql/2018/07/11/modularizing-graphql.htmlModularizingyourgraphQLschemasWorkinginakindabiggraphqlserver,schem...

  • 使用 pgspider griddb fdw 让griddb 支持hasura graphql-engine

    时间:2021-10-22 20:40:24

    原理很简单,就是通过griddbfdw暴露griddb的数据操作为正常的pg操作,后然就可以使用hasuragraphql-engine了参考环境准备version:"3"services: graphql-engine:  image:hasura/graphql-engine:v1.1.0-be...

  • ASP.NET Core中使用GraphQL - 第七章 Mutation

    时间:2021-08-31 11:26:57

    ASP.NETCore中使用GraphQL-目录ASP.NETCore中使用GraphQL-第一章HelloWorldASP.NETCore中使用GraphQL-第二章中间件ASP.NETCore中使用GraphQL-第三章依赖注入ASP.NETCore中使用GraphQL-第四章GrahpiQLA...

  • ASP.NET Core中使用GraphQL - 第二章 中间件

    时间:2021-07-26 11:55:11

    前文:ASP.NETCore中使用GraphQL-第一章HelloWorld中间件如果你熟悉ASP.NETCore的中间件,你可能会注意到之前的博客中我们已经使用了一个中间件,app.Run(async(context)=>{varresult=awaitnewDocumentExecuter...

  • ASP.NET Core中使用GraphQL - 第一章 Hello World

    时间:2021-07-22 07:46:57

    前言你是否已经厌倦了REST风格的API?让我们来聊一下GraphQL。GraphQL提供了一种声明式的方式从服务器拉取数据。你可以从GraphQL官网中了解到GraphQL的所有优点。在这一系列博客中,我将展示如何在ASP.NETCore中集成GraphQL,并使用GraphQL作为你的API查询...

  • spring-petclinic-graphql项目详解

    时间:2021-07-16 12:04:55

    熟悉Spring框架的开发人员对其著名的spring-petclinic应用都不陌生。Nils在spring-petclinic的基础上开发了结合GraphQL特性的spring-petclinic-graphql应用,本文对该应用进行详解。1. spring-petclinic-graphql的组...