Skip to content
#

GraphQL

graphql logo

GraphQL is a data query language developed by Facebook. It provides an alternative to REST and ad-hoc webservice architectures. It allows clients to define the structure of the data required, and exactly the same structure of the data is returned from the server. It is a strongly typed runtime which allows clients to dictate what data is needed.

Here are 853 public repositories matching this topic...

Kludex
Kludex commented Jul 4, 2022

Add a note on the TestClient section about the behavior difference between those two ways, i.e. lifespan events.

Considering the follow application:

from starlette.applications import Starlette
from starlette.requests import Request
from starlette.responses import Response
from starlette.routing import Route
from starlette.testclient import TestClient


async def startup() 
documentation good first issue
butla
butla commented Feb 5, 2020

Hey! When I was reading the docs and I saw api.background.task, the first thing that popped into my head was "but you can just use asyncio.create_task or loop,.run_in_executor for that without inventing something new!". But then I noticed that it also passes the context vars to the synchronous backround stuff, which is nice. Wonder why that's not the case in the stdlib, cause it would be nic

Stranger6667
Stranger6667 commented Sep 14, 2020

This might be helpful - too many redirects may be considered an error. E.g. the API schema might need to provide endpoints that won't involve any redirection at all, for example, if the app redirects "/api/users" to "/api/users/", then the schema should have endpoints with trailing slashes to avoid these redirects for clients at all.

Implementation notes

  • Update models.Case.call signatu
bojanserafimov
bojanserafimov commented Oct 12, 2020

Make a concise print function for the QueryPlanningAnalysis class https://github.com/kensho-technologies/graphql-compiler/blob/v2.0.0.dev25/graphql_compiler/cost_estimation/analysis.py#L381

In most cases, the printout of the analysis passes is enough to explain why a particular query plan was chosen.

enhancement user friendliness good first issue maintainer quality-of-life
ndanielsen
ndanielsen commented Sep 4, 2019

Loving this project.

I feel like this project would benefit from a short quick start tutorial that demonstrate common methods such as:

Create item

    mutation = Operation(schema.Mutation)  # note 'schema.'
    mutation.create_item(input=dict(id="23432")).__fields__()

List items with filter

    op = Operation(schema.Query)  # note 'schema.'
    op.list_it
enhancement good first issue

Created by Facebook

Released 2015

Organization
graphql
Website
graphql.org
Wikipedia
Wikipedia

Related Topics

api rest