Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
CreateUser will persist the user in the Dgraph database
Types ¶
type FindUserOptions ¶
type FindUserOptions struct {
Fields string
}
FindUserOptions Options for FindUser()
type LikedResponse ¶
type User ¶
type User struct { ID string `json:"id"` UID string `json:"uid,omitempty"` Name string `json:"name,omitempty"` Email string `json:"email"` Password string `json:"password"` DType []string `json:"dgraph.type,omitempty"` }
User model
func FindMatches ¶
func FindMatches(ctx context.Context, client *dgraph.Client, currentUser *User, options *FindUserOptions) ([]*User, error)
FindMatches Find the matches for the given user
Click to show internal directories.
Click to hide internal directories.