In my schema I have a `Project` that is related to...
# graphql-nexus
a
In my schema I have a
Project
that is related to an
Organization
I would like to
createOneProject
by just specifying teh organization ID but it generates as requiring the whole
organization
object.
Copy code
//Simplified
model Organization {
  id        Int        @id @default(autoincrement())
  name      String?
  projects  Project[]
}

model Project {
  id          Int       @id @default(autoincrement())
  organization Organization @relation(fields: [organizationId], references: [id])
  organizationId Int
  name        String
}
I'm using the
experimentalCRUD
to generate
createOneProject
but it auto generates with
Copy code
type Mutation {
createOneProject(data: ProjectCreateInput!): Project!
}
Where
Copy code
type Project {
  id: Int!
  name: String!
  organizationId: Int!
}

input ProjectCreateInput {
  name: String!
  organization: OrganizationCreateOneWithoutProjectsInput!
}