Create the signature for your API
main
package.The functions below generate an API endpoint with the signatureclassify
function isn’t capitalized, Modus doesn’t include it in the
generated GraphQL API.mutate
post
, patch
, put
, delete
add
, update
, insert
, upsert
create
, edit
, save
, remove
, alter
, modify
start
, stop
getUserById
→ QuerylistProducts
→ QueryaddUser
→ MutationupdateProduct
→ MutationdeleteOrder
→ MutationaddPost
becomes a mutation, but
additionalPosts
remains a query since “additional” doesn’t match the exact
“add” prefix pattern.