Graphql Conditional Query

Viewed 17

How can I conditionally use graphql such that when address is given it returns Account and when it isn't it retunrs the authenticated user? accountByAddress(address: String! @where(operator: "like")): [Account!]! @all

1 Answers

you can use @skip or @auth to skip or return authenticated user.

Related