Class GraphQLEndpoint

java.lang.Object
ch.bztf.m226blb1.Platforms.GraphQL.GraphQLEndpoint

public class GraphQLEndpoint extends Object
GraphQL Endpoint for the GraphQL API.
See Also:
  • 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 account
      username - The username of the user
      platform - 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)
      Gets limit posts from a user
      Parameters:
      dfe - The data fetching environment
      limit - 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