Packages

Mongo Agile Library for Elixir, with a micro-language integrated query

Current section

Files

Jump to
mongo_agile lib examples api api_controller.ex
Raw

lib/examples/api/api_controller.ex

defmodule MongoAgile.Examples.Api.ApiController do
@moduledoc """
ApiController example of use install_api
"""
use MongoAgile.Controller,
collection: "test_api",
pid_mongo: :mongo,
install_api: true
# When install_api: true
# You will can use the following methods
#
# get(id)
# post(doc)
# put(id, doc)
# delete(id)
# patch(id, changeset)
#... here more queries that you need ...
end