Ready to use lambdas for mutations? This documentation takes you through the schemas, resolvers, and examples.
@lambda directive.
add, update, and delete are reserved prefixes and they canβt be used to
define Lambda mutations.Author that creates a new author
with a default reputation of 3.0 given just the name:
addGraphQLResolvers or addMultiParentGraphQLResolvers methods.
parents, args, dql,
or graphql inside the function.graphql for the resolver function. You can find additional
resolver examples using dql in the Lambda queries article, and
using parent in the Lambda fields article.newAuthor() lambda function and add it
as resolver:
dql.mutate to achieve the same results:
Ken Addams with
reputation=3.0 should be added to the database:
Ken Addams, you would see: