Skip to content
#

graphql-schema

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 216 public repositories matching this topic...

hotchocolate
mbdnk
mbdnk commented Nov 13, 2021

Hi!
How can I set response headers if the context object does not contain the response key? I need to set a httpOnly cookie when a user authenticates in the system. For db injection I used Extension.

def authenticate_user(username: str, password: str, info: Info) -> AuthenticateResponse:
    db = info.context['db']
    ...
    info.context["response"].set_cookie(key="token", value

Created by Facebook

Released 2015

Organization
graphql
Website
graphql.org
Wikipedia
Wikipedia

Related Topics

api rest