Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add object Collaborator and mutation unitTypeCreate #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Lopidurs
Copy link

@Lopidurs Lopidurs commented Mar 8, 2024

gql schema corresponding to those changes:

type Collaborator {
   id: ID!
   name: String!
   firstName: String!
}

type query {
   collaborators: [Collaborator!]!
   collaboratorById(id: ID!): Collaborator!
}

input UnitTypeCreateInput {
   name: String!
}

type mutation {
   unitTypeCreate(input: UnitTypeCreateInput!): UnitType
}

Lopidurs added 4 commits March 7, 2024 14:40
Unable to perform a unitTypeByIdId query because the model was looking for a _deleted_at collone in the db instead of deleted_at.
Add a new collaborator object with the collaborators and collaboratorsById queries.
The logic and file structure are based on the unitType object.
New unitTypeCreate migration querry.
Uses the create function of UnitTypeRepository. Creation of root type Mutation to access the mutations.
Change of type in collaborator and collaboratorQuerry to match the requested gpl schema.
@Lopidurs Lopidurs changed the title Add object Collaborator and mutaion unitTypeCreate Add object Collaborator and mutation unitTypeCreate Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant