Skip to content

Split each query and mutation into its own file, enhance return types #127

Description

@rtman

Description

Return types for graphql api queries/mutations should return standard responses:

Sucess:

ok: true,
body: SuccessResult

Fail:

ok: false,
error: {
   message: string
}

In order to do this there needs to be a type for each query/mutation that defines its return types. Best to split them into individual files for this, its better this way anyways as the files are quite long and complex already.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions