package
0.0.0-20200724171720-bf847f167ce2
Repository: https://github.com/cristhoperdev/go-graphql-entc.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Count applies the "count" aggregation function on each group.
Debug enables debug logging on the ent.Driver.
Desc applies the given fields in DESC order.
Driver configures the client driver.
FromContext returns the Client stored in a context, or nil if there isn't one.
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
IsNotSingular returns a boolean indicating whether the error is a not singular error.
IsValidationError returns a boolean indicating whether the error is a validaton error.
Log sets the logging function for debug mode.
MaskNotFound masks nor found error.
Max applies the "max" aggregation function on the given field of each group.
Mean applies the "mean" aggregation function on the given field of each group.
Min applies the "min" aggregation function on the given field of each group.
NewAuthorClient returns a client for the Author from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewFilmClient returns a client for the Film from the given config.
NewTxContext returns a new context with the given Client attached.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
TxFromContext returns the Tx stored in a context, or nil if there isn't one.

# Constants

Operation types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Node types.
No description provided by the author

# Structs

Author is the model entity for the Author schema.
AuthorClient is a client for the Author schema.
AuthorCreate is the builder for creating a Author entity.
AuthorDelete is the builder for deleting a Author entity.
AuthorDeleteOne is the builder for deleting a single Author entity.
AuthorEdges holds the relations/edges for other nodes in the graph.
AuthorGroupBy is the builder for group-by Author entities.
AuthorMutation represents an operation that mutate the Authors nodes in the graph.
AuthorQuery is the builder for querying Author entities.
AuthorSelect is the builder for select fields of Author entities.
AuthorUpdate is the builder for updating Author entities.
AuthorUpdateOne is the builder for updating a single Author entity.
Client is the client that holds all ent builders.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
Film is the model entity for the Film schema.
FilmClient is a client for the Film schema.
FilmCreate is the builder for creating a Film entity.
FilmDelete is the builder for deleting a Film entity.
FilmDeleteOne is the builder for deleting a single Film entity.
FilmEdges holds the relations/edges for other nodes in the graph.
FilmGroupBy is the builder for group-by Film entities.
FilmMutation represents an operation that mutate the Films nodes in the graph.
FilmQuery is the builder for querying Film entities.
FilmSelect is the builder for select fields of Film entities.
FilmUpdate is the builder for updating Film entities.
FilmUpdateOne is the builder for updating a single Film entity.
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
NotLoadedError returns when trying to get a node that was not loaded by the query.
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
Tx is a transactional client that is created by calling Client.Tx().
ValidationError returns when validating a field fails.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

AggregateFunc applies an aggregation step on the group-by traversal/selector.
Authors is a parsable slice of Author.
No description provided by the author
No description provided by the author
Films is a parsable slice of Film.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
Option function to configure the client.
OrderFunc applies an ordering on either graph traversal or sql selector.
ent aliases to avoid import conflict in user's code.
ent aliases to avoid import conflict in user's code.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflict in user's code.