erius
e0aa12b126
Removed unnecesary bindings for ID and Int in gqlgen.yml Minor changes to Makefile docker-clean target Reduced docker-compose postgres healthcheck interval for faster local db connections Added pagination to graphql schema, the paginated queries are WIP Removed unneeded fields from the model structs Added allowComment check when adding comments Switched gorm logger to Info mode App now panics if the specified APP_STORAGE in env doesn't exist Reworked database methods, still barely working and are WIP
35 lines
680 B
Go
35 lines
680 B
Go
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
type CommentsConnection struct {
|
|
Edges []*CommentsEdge `json:"edges"`
|
|
PageInfo *PageInfo `json:"pageInfo"`
|
|
}
|
|
|
|
type CommentsEdge struct {
|
|
Cursor uint `json:"cursor"`
|
|
Node *Comment `json:"node"`
|
|
}
|
|
|
|
type Mutation struct {
|
|
}
|
|
|
|
type PageInfo struct {
|
|
StartCursor uint `json:"startCursor"`
|
|
EndCursor uint `json:"endCursor"`
|
|
HasNextPage bool `json:"hasNextPage"`
|
|
}
|
|
|
|
type PostsConnection struct {
|
|
Edges []*PostsEdge `json:"edges"`
|
|
PageInfo *PageInfo `json:"pageInfo"`
|
|
}
|
|
|
|
type PostsEdge struct {
|
|
Cursor uint `json:"cursor"`
|
|
Node *Post `json:"node"`
|
|
}
|
|
|
|
type Query struct {
|
|
}
|