Skip to content

Instantly share code, notes, and snippets.

@dotansimha
Created June 19, 2019 12:15
Show Gist options
  • Save dotansimha/b747043b23e591cfdb10aade1ee2d6d9 to your computer and use it in GitHub Desktop.
Save dotansimha/b747043b23e591cfdb10aade1ee2d6d9 to your computer and use it in GitHub Desktop.
package com.java.generated;
import graphql.schema.TypeResolver;
import graphql.schema.DataFetcher;
public class Resolvers {
public interface Chat {
public DataFetcher<Object> id();
public DataFetcher<Iterable<Object>> users();
public DataFetcher<String> title();
}
public interface Node extends TypeResolver {
default public DataFetcher<Object> id() { return null; }
}
public interface Query {
public DataFetcher<Object> me();
}
public interface SearchResult extends TypeResolver {}
public interface User {
public DataFetcher<Object> id();
public DataFetcher<String> username();
public DataFetcher<String> email();
public DataFetcher<String> name();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment