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.