def mutate(root, info, content, id): #pylint:disable=unused-argument, too-many-arguments, redefined-builtin """ Mutate Leaf """ leaf = helpers.mutate_model(info, id, Leaf, content, "content") ok = True return EditLeafTitle(leaf=leaf, ok=ok)
def mutate(root, info, favorite, id): #pylint:disable=unused-argument, too-many-arguments, redefined-builtin """ Mutate Leaflet """ leaflet = helpers.mutate_model(info, id, Leaflet, favorite, "favorite") ok = True return EditLeafletFavorite(leaflet=leaflet, ok=ok)
def mutate(root, info, color, id): #pylint:disable=unused-argument, too-many-arguments, redefined-builtin """Mutates Notebook Color :color: string representing the color of the notebook :id: integer representing the id of the notebook :returns: a request containing a notebook object and a boolean "ok" or None and and object "ok" that is also None """ notebook = helpers.mutate_model(info, id, Notebook, color, "color") ok = True return EditNotebookColor(notebook=notebook, ok=ok)
def mutate(root, info, title, id): #pylint:disable=unused-argument, too-many-arguments, redefined-builtin """Mutates notebook title :title: string representing the title of the notebook. :id: integer for the id of the notebook. :returns: a request containing a notebook object and a boolean "ok" or None and and object "ok" that is also None """ notebook = helpers.mutate_model(info, id, Notebook, title, "title") ok = True return EditNotebookTitle(notebook=notebook, ok=ok)
def mutate(root, info, favorite, id): #pylint:disable=unused-argument, too-many-arguments, redefined-builtin """Mutates Notebook Favorite :favorite: boolean representing if a notebook has been favorited :id: integer representing the id of the notebook :returns: a request containing a notebook object and a boolean "ok" or None and and object "ok" that is also None """ notebook = helpers.mutate_model(info, id, Notebook, favorite, "favorite") ok = True return EditNotebookFavorite(notebook=notebook, ok=ok)
def mutate(root, info, location, id): #pylint:disable=unused-argument, too-many-arguments, redefined-builtin """Mutates Notebook Location :location: integer representing the location of the notebook in the notebook list :id: integer representing the id of the notebook :returns: a request containing a notebook object and a boolean "ok" or None and and object "ok" that is also None """ notebook = helpers.mutate_model(info, id, Notebook, location, "location") ok = True return EditNotebookLocation(notebook=notebook, ok=ok)