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
Suppose i have the following schema:
type User{
id: ID! @unique
age: Int
email: String! @unique
name: String!
posts: [Post!]!
}
type Post {
id: ID! @unique
title: String!
published: Boolean!
author: User!
}
How can I implemented a nested mutation like:
mutation {
createPost(data: {
title: "This is a draft"
published: false
author: {
create: {
email: "[email protected]"
name:"athina"
}
}
}) {
id
title
published
author {
name
email
}
}
}
The text was updated successfully, but these errors were encountered:
Suppose i have the following schema:
type User{
id: ID! @unique
age: Int
email: String! @unique
name: String!
posts: [Post!]!
}
type Post {
id: ID! @unique
title: String!
published: Boolean!
author: User!
}
How can I implemented a nested mutation like:
mutation {
createPost(data: {
title: "This is a draft"
published: false
author: {
create: {
email: "[email protected]"
name:"athina"
}
}
}) {
id
title
published
author {
name
email
}
}
}
The text was updated successfully, but these errors were encountered: