schema

package
v0.0.0-...-7275f5d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalUUID

func MarshalUUID(u uuid.UUID) graphql.Marshaler

func UnmarshalUUID

func UnmarshalUUID(v interface{}) (u uuid.UUID, err error)

Types

type Node

type Node struct {
	// We embed the `mixin.Schema` to avoid
	// implementing the rest of the methods.
	mixin.Schema
}

Node implements the ent.Mixin for sharing time fields with package schemas.

func (Node) Fields

func (Node) Fields() []ent.Field

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Edges

func (User) Edges() []ent.Edge

Edges of the User.

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

func (User) Mixin

func (User) Mixin() []ent.Mixin

Mixins of the User.

Jump to

Keyboard shortcuts

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