Discover Packages
github.com/schartey/dgraph-lambda-go
examples
lambda
model
package
Version:
v0.8.21
Opens a new window with list of versions in this module.
Published: Nov 8, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Apple struct {
Id string `json:"id" dql:"uid"`
Price int64 `json:"price" dql:"Apple.price"`
Color string `json:"color" dql:"Apple.color"`
}
type Author struct {
Id string `json:"id" dql:"uid"`
Name string `json:"name" dql:"Author.name"`
Posts []*Post `json:"posts" dql:"Author.posts"`
RecentlyLiked []*Post `json:"recentlyLiked" dql:"Author.recentlyLiked"`
Friends []*Author `json:"friends" dql:"Author.friends"`
}
type Color interface {
IsColor()
}
type Figure struct {
Id string `json:"id" dql:"uid"`
Shape string `json:"shape" dql:"Figure.shape"`
Color string `json:"color" dql:"Figure.color"`
Size int64 `json:"size" dql:"Figure.size"`
}
type Fruit interface {
IsFruit()
}
type Hotel struct {
Id string `json:"id" dql:"uid"`
Name string `json:"name" dql:"Hotel.name"`
Location *geom.T `json:"location" dql:"Hotel.location"`
Area *geom.T `json:"area" dql:"Hotel.area"`
}
type PointList struct {
Points []*geom.T `json:"points" dql:"PointList.points"`
}
type Post interface {
IsPost()
}
type Shape interface {
IsShape()
}
const (
TagGraphQL Tag = "GraphQL"
TagDatabase Tag = "Database"
TagQuestion Tag = "Question"
)
func (e *Tag ) UnmarshalGQL(v interface{}) error
type User struct {
UserID string `json:"userID" dql:"User.userID"`
Credentials *models .Credentials `json:"credentials" dql:"User.credentials"`
Name string `json:"name" dql:"User.name"`
LastSignIn *time .Time `json:"lastSignIn" dql:"User.lastSignIn"`
RecentScores []float64 `json:"recentScores" dql:"User.recentScores"`
Likes int64 `json:"likes" dql:"User.likes"`
Reputation int64 `json:"reputation" dql:"User.reputation"`
Rank int64 `json:"rank" dql:"User.rank"`
Active bool `json:"active" dql:"User.active"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.