Skip to content
#

ASGI

ASGI (Asynchronous Server Gateway Interface) is a spiritual successor to WSGI, intended to provide a standard interface between async-capable Python web servers, frameworks, and applications.

Here are 189 public repositories matching this topic...

patrick91
patrick91 commented Jun 3, 2021

This example:

import strawberry

from typing import List

from decimal import Decimal

def get_age(root) -> int:
    return root # this will be 123

@strawberry.type
class User:    
    age: int = strawberry.field(resolver=get_age)

def get_users(name: Decimal):
  return [123]


@strawberry.type
class Query:
   users: List[User] = strawberry.field(get_users)


schema