OBJECT

UserQuery

link GraphQL Schema definition

  • type UserQuery {
  • # Fetch information for the logged in user
  • currentUser: User!
  • # Query UserInterest scores optionally requesting interest scores of a list of
  • # userIds in a list of entityIds
  • #
  • # Arguments
  • # after: Return records after the given cursor, as per GraphQL
  • # Relay spec
  • # before: Return records before the given cursor, as per GraphQL
  • # Relay spec
  • # entityId: List of entities to fetch interest scores of users in
  • # userId
  • # first: Return first N records in a paged response, as per
  • # GraphQL Relay spec
  • # sort: List of fields on which to sort the results by. Result
  • # will be always be sorted by user interest scores in descending order
  • queryUserInterestScores(
  • after: String,
  • before: String,
  • entityId: [EntityId!],
  • first: Int,
  • sort: [QuerySort!]
  • ): UserInterestScoreConnection
  • # Query UserPrefs optionally filtering by entityId and/or preference name
  • #
  • # Arguments
  • # entityId: [Not documented]
  • # name: [Not documented]
  • queryUserPrefs(entityId: [EntityId!], name: [String!]): [UserPref!]
  • # Arguments
  • # after: Return records after the given cursor, as per GraphQL
  • # Relay spec
  • # before: Return records before the given cursor, as per GraphQL
  • # Relay spec
  • # cspProjectId: Optional CSP Project ID to list the users
  • # belonging to the project
  • # first: Return first N records in a paged response, as per
  • # GraphQL Relay spec
  • # searchTerm: Optional Search criteria to search for users by
  • # their first name, last name and email. Requires admin privileges as this is
  • # typically used for user assignments
  • searchUsers(
  • after: String,
  • before: String,
  • cspProjectId: String,
  • first: Int,
  • searchTerm: String
  • ): UserConnection!
  • }

link Require by