i m creating a Account ,now i want to give this account mutation permission to a specific account using Account hypi.id.
how to do this…
please share a example.
The example in the documentation shows how to do exactly this https://docs.hypi.app/references/authorisation#examples
Create a permission which contains an AccountPolicy
. In the docs hypi.id
is anonymous
- change this to whatever the account ID is that you want to give permission to.
This line accounts: [{ hypi: { id: "anonymous" } }]