| 1 |
# Copyright 2022 The Archivista Contributors |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
schema: |
| 16 |
- archivista.graphql |
| 17 |
- ent.graphql |
| 18 |
|
| 19 |
resolver: |
| 20 |
# Tell gqlgen to generate resolvers next to the schema file. |
| 21 |
layout: follow-schema |
| 22 |
dir: . |
| 23 |
|
| 24 |
# gqlgen will search for any type names in the schema in the generated |
| 25 |
# ent package. If they match it will use them, otherwise it will new ones. |
| 26 |
autobind: |
| 27 |
- github.com/in-toto/archivista/ent |
| 28 |
|
| 29 |
models: |
| 30 |
ID: |
| 31 |
model: |
| 32 |
- github.com/in-toto/archivista/ent/schema/uuidgql.UUID |
| 33 |
Uint64: |
| 34 |
model: |
| 35 |
- github.com/99designs/gqlgen/graphql.Uint64 |
| 36 |
UUID: |
| 37 |
model: |
| 38 |
- github.com/in-toto/archivista/ent/schema/uuidgql.UUID |
| 39 |
# Node: |
| 40 |
# model: |
| 41 |
# # ent.Noder is the new interface generated by the Node template. |
| 42 |
# - github.com/in-toto/archivista/ent.Noder |
| 43 |
# Subject: |
| 44 |
# model: |
| 45 |
# - github.com/in-toto/archivista/ent.Subject |