I have tried to extend the schema mutation
by adding schema.graphql in my module &
type Mutation {
revokeCustomerToken(pagedata: PageData): RevokeCustomerTokenOutput @resolver(class: "\\Vendor\\CustomerGraphQl\\Model\\Resolver\\RevokeCustomerToken") @doc(description:"Revoke the customer token")
}
input PageData {
location: String @doc(description: "The location from where the login performed")
login_type: String @doc(description: "The login type, such as manual or facebook")
page_path: String @doc(description: "The path of the page")
page_referrer: String @doc(description: "The page referrer")
page_title: String @doc(description: "Title of the page")
page_url: String @doc(description: "The page url")
}
but i am getting Syntax Error GraphQL request (4:15) Expected Name error
i try with this schema in chrome tool
mutation {
revokeCustomerToken {
result
pagedata: {
location: "test"
login_type: "test"
page_path: "[email protected]"
page_referrer: "test"
page_title: "test"
page_url: "test"
}
}
}
any thoughts on this ?