Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedro-gutierrez/graphism_test
https://github.com/pedro-gutierrez/graphism_test
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pedro-gutierrez/graphism_test
- Owner: pedro-gutierrez
- Created: 2024-02-02T18:21:08.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-10T20:41:20.000Z (9 months ago)
- Last Synced: 2024-02-10T21:32:23.180Z (9 months ago)
- Language: Elixir
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphismTest
**TODO: Add description**
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `graphism_test` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:graphism_test, "~> 0.1.0"}
]
end
```Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at .## Creating catalogs
```
iex> GraphismTest.Schema.Catalog.Api.create(%{id: Ecto.UUID.generate(), name: "default", slug: "default", released: true, premium: false, paid: false})iex> GraphismTest.Schema.Catalog.Api.create(%{id: Ecto.UUID.generate(), name: "workouts", slug: "workouts", released: true, premium: true, paid: false})
iex> GraphismTest.Schema.Catalog.Api.create(%{id: Ecto.UUID.generate(), name: "medication", slug: "medication", released: true, premium: true, paid: true})
```## Listing catalogs
```
iex> GraphismTest.Schema.Catalog.Api.list(%{current_user: %{roles: [:anonymous]}})
```