Tag: strawberry-graphql
-
c# .net build error due to strawberry shake graphql client error – “access to the path ‘obj\berry’ is denied”
8 Recently I updated my visual studio to the latest version of 17.5.1 and my target sdk version is NET 7.0 SDK (v7.0.102). Now I have a build error stating that "access to the path ‘objberry’ is denied". Anyone got the same error and suggestion to fix this issue? c# .net graphql strawberry-graphql strawberryshake Share…
-
c# .net build error due to strawberry shake graphql client error – “access to the path ‘obj\berry’ is denied”
8 Recently I updated my visual studio to the latest version of 17.5.1 and my target sdk version is NET 7.0 SDK (v7.0.102). Now I have a build error stating that "access to the path ‘objberry’ is denied". Anyone got the same error and suggestion to fix this issue? c# .net graphql strawberry-graphql strawberryshake Share…
-
Strawberry with social_django
0 How can I use social_django with strawberry graphql? With graphene, I inherited my strawberry.type from SocialAuthJWT I used in grapgene like this. class SocialAuth(graphql_social_auth.SocialAuthJWT): user = graphene.Field(UserType) @classmethod def resolve(cls, root, info, social, **kwargs): social.user.is_verified = True social.user.save() token = get_token(social.user) return cls(user=social.user, token=token) I’d like to log in with google. python python-3.x django…
-
Dynamic Python Function Generation from GraphQL Schema for API Requests
0 I’m looking for a method to dynamically generate Python functions that correspond to the queries and mutations defined in a GraphQL schema. After obtaining the schema, I want a system that can automatically create these functions, so I can simply import the generated code into my Python project and call the functions with the…
-
POST body not visible in OpenAPI for GraphQL route
-1 I have a FastAPI app with Strawberry for GraphQL. This is a minimal, workable example: main.py: import strawberry from fastapi import FastAPI from strawberry.fastapi import GraphQLRouter @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 = GraphQLRouter(schema) app = FastAPI() app.include_router(graphql_app,…
-
is it possible to have a single subscription waiting for data from multiple sources using graphql strawberry?
0 I am expecting to get data from multiple sources via single subscription if the data is not available in the source yield empty response, for certain number of retries @strawberry.type class DataFromSources: source_1 : JSON source_2 : JSON @strawberry.type class Subscription: @strawberry.subscription async def data_from_sources(self, target: int = 10) -> AsyncGenerator[DataFromSources, None]: source_1, source_2…
-
Graphql: show Mysql DB in using graphql with python
0 I have a mysql table, which i want to represent using graphQL, I have tried something using ariandne, and i am able to get the rows. Now, I want to introduce functionality of where clause as well, One way could be to have a resolver for each column, but that has its limitations, and…