schema

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Schemas = []carrier.Schema{
		&carrier.StructSchema{
			To: model.Recipe{},
			Posts: []carrier.PostField{
				{Name: "stepsCount", Input: 1},
				{Name: "ingredientsCount", Input: 1},
			},
			Traits: []string{"vegan", "keto"},
		},
		&carrier.StructSchema{To: model.RecipeStep{}},
		&carrier.StructSchema{To: model.Ingredient{}},
		&carrier.StructSchema{To: model.RecipeIngredient{}},
		&carrier.StructSchema{To: model.Category{}},
		&carrier.StructSchema{
			To:    model.User{},
			Posts: []carrier.PostField{{Name: "recipes", Input: 1}},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL