You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alteration (enhancement/optimization) of existing feature(s)
New behavior
Description
What it does
schema-codegen currently generates the following from the schema:
import strawberry
@strawberry.type
class Member:
username: str
@strawberry.type
class Query:
member: Member | None
@strawberry.type
class Mutation:
create_user: Member
schema = strawberry.Schema(query=Query, mutation=Mutation)
Here's the schema for reference:
schema {
query: Query
mutation: Mutation
}
type Member {
username: String!
}
type Query {
member: Member
}
type Mutation {
createMember(name: String!): Member!
}
What it should do
Instead, it should generate the following for our mutations:
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
c0dezer019
changed the title
[schema-codegen] schema-codegen should generate mutation methods
schema-codegen should generate mutation methods
Nov 22, 2023
One note on this, we'll probably generate an empty method instead of what you wrote, as it won't be easy to generate something that's actually valid (and useful)
Feature Request Type
Description
What it does
schema-codegen currently generates the following from the schema:
Here's the schema for reference:
What it should do
Instead, it should generate the following for our mutations:
Upvote & Fund
The text was updated successfully, but these errors were encountered: