README ¶ Social App A simple example of how to use struct fields as resolvers instead of methods. To run this server go run ./example/social/server/server.go and go to localhost:9011 to interact Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants type Resolver func (r *Resolver) Admin(ctx context.Context, args struct{ ... }) (*adminResolver, error) func (r *Resolver) Search(ctx context.Context, args struct{ ... }) ([]*searchResult, error) func (r *Resolver) User(ctx context.Context, args struct{ ... }) (user, error) Constants ¶ View Source const Schema = `` /* 583-byte string literal not displayed */ Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Resolver ¶ type Resolver struct{} func (*Resolver) Admin ¶ func (r *Resolver) Admin(ctx context.Context, args struct { ID string Role string }) (*adminResolver, error) func (*Resolver) Search ¶ func (r *Resolver) Search(ctx context.Context, args struct{ Text string }) ([]*searchResult, error) func (*Resolver) User ¶ func (r *Resolver) User(ctx context.Context, args struct{ Id string }) (user, error) Source Files ¶ View all Source files social.go Directories ¶ Show internal Expand all Path Synopsis server Click to show internal directories. Click to hide internal directories.