Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Strawberry (0.11 sec)

  1. docs_src/graphql/tutorial001.py

    import strawberry
    from fastapi import FastAPI
    from strawberry.asgi import GraphQL
    
    
    @strawberry.type
    class User:
        name: str
        age: int
    
    
    @strawberry.type
    class Query:
        @strawberry.field
        def user(self) -> User:
            return User(name="Patrick", age=100)
    
    
    schema = strawberry.Schema(query=Query)
    
    
    graphql_app = GraphQL(schema)
    
    app = FastAPI()
    app.add_route("/graphql", graphql_app)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 03 18:00:28 UTC 2021
    - 446 bytes
    - Viewed (0)
  2. docs/es/docs/how-to/graphql.md

    Aquí hay una pequeña muestra de cómo podrías integrar Strawberry con FastAPI:
    
    ```Python hl_lines="3  22  25-26"
    {!../../docs_src/graphql/tutorial001.py!}
    ```
    
    Puedes aprender más sobre Strawberry en la <a href="https://strawberry.rocks/" class="external-link" target="_blank">documentación de Strawberry</a>.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/graphql.md

    Here's a small preview of how you could integrate Strawberry with FastAPI:
    
    {* ../../docs_src/graphql/tutorial001.py hl[3,22,25:26] *}
    
    You can learn more about Strawberry in the <a href="https://strawberry.rocks/" class="external-link" target="_blank">Strawberry documentation</a>.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:39:38 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. docs/de/docs/how-to/graphql.md

    Hier ist eine kleine Vorschau, wie Sie Strawberry mit FastAPI integrieren können:
    
    ```Python hl_lines="3  22  25-26"
    {!../../docs_src/graphql/tutorial001.py!}
    ```
    
    Weitere Informationen zu Strawberry finden Sie in der <a href="https://strawberry.rocks/" class="external-link" target="_blank">Strawberry-Dokumentation</a>.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. docs/pt/docs/how-to/graphql.md

    Aqui está uma pequena prévia de como você poderia integrar Strawberry com FastAPI:
    
    ```Python hl_lines="3  22  25-26"
    {!../../docs_src/graphql/tutorial001.py!}
    ```
    
    Você pode aprender mais sobre Strawberry na <a href="https://strawberry.rocks/" class="external-link" target="_blank">documentação do Strawberry</a>.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. docs/em/docs/how-to/graphql.md

    ⚒ 💭 👆 🔬 🚥 **💰** 👆 ⚙️ 💼 ⚖ **👐**. 👶
    
    ///
    
    ## 🕹 🗃
    
    📥 **🕹** 🗃 👈 ✔️ **🔫** 🐕‍🦺. 👆 💪 ⚙️ 👫 ⏮️ **FastAPI**:
    
    * <a href="https://strawberry.rocks/" class="external-link" target="_blank">🍓</a> 👶
        * ⏮️ <a href="https://strawberry.rocks/docs/integrations/fastapi" class="external-link" target="_blank">🩺 FastAPI</a>
    * <a href="https://ariadnegraphql.org/" class="external-link" target="_blank">👸</a>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top