Institutions
CRUD queries for Institutions
Last updated
Was this helpful?
CRUD queries for Institutions
Last updated
Was this helpful?
Was this helpful?
const bodyJSON = {
variables: {
input: {
legalName: "Intermediate Institution Ltd",
businessNumber: "A39477669937",
address: {
postcode: "2000",
street: "203 Business Street",
country: "AU",
state: "NSW",
suburb: "Sydney",
},
},
},
query: `
mutation ($input: InstitutionInput!) {
createInstitution(input: $input) {
success code message
institution {
id
}
}
}`,
};mutation($input: InstitutionInput!) {
createInstitution(input: $input) {
success
code
message
institution {
id
}
}
} "input": {
"legalName": "Intermediate Institution Ltd",
"businessNumber": "A39477669937",
"address": {
"postcode": "2000",
"street": "203 Business Street",
"country": "AU",
"state": "NSW",
"suburb": "Sydney"
}
}
}{
"data": {
"createInstitution": {
"success": true,
"code": "INSTITUTION_CREATED",
"message": "Institution created",
"institution": {
"id": "65570da4f176682c5e412552"
}
}
}
}