Class GraphQLEndpoint
java.lang.Object
ch.bztf.m226blb1.Platforms.GraphQL.GraphQLEndpoint
GraphQL Endpoint for the GraphQL API.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
GraphQLEndpoint
public GraphQLEndpoint() 
 - 
 - 
Method Details
- 
user
public User user(@NotBlank @NotBlank String apiKey, @NotBlank @NotBlank String username, Platform platform) Get a user from a platform- Parameters:
 apiKey- The api key of the accountusername- The username of the userplatform- The platform to get the user from- Returns:
 - The user as a graphql object
 
 - 
posts
public Set<Post> posts(com.netflix.graphql.dgs.DgsDataFetchingEnvironment dfe, Optional<Integer> limit) Getslimitposts from a user- Parameters:
 dfe- The data fetching environmentlimit- The amount of posts to get- Returns:
 - The posts limited by 
limit - Implementation Note:
 - This method is intended to be used in a GraphQL query and not a REST endpoint
 
 
 -