application.resolvers.query package#
Submodules#
application.resolvers.query.apikeys module#
application.resolvers.query.apikeys
application.resolvers.query.blob module#
application.resolvers.query.blob
- application.resolvers.query.blob.resolve_generate_uid(_, _info)#
Resolves the GraphQL query for generating a unique identifier (UID).
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
- Returns:
A newly generated unique identifier.
- Return type:
str
application.resolvers.query.book module#
application.resolvers.query.book
application.resolvers.query.bugs module#
application.resolvers.query.bugs
- application.resolvers.query.bugs.users_in_group(username)#
Returns a list of user ObjectIds based on the provided username or the caller’s group memberships.
If a username is provided, returns a list containing the ObjectId of that user. If no username is provided, retrieves the caller’s user data, extracts their groups,
and returns ObjectIds of users in those groups.
- Parameters:
username (str | None) – The username to look up. If None, uses the caller’s information.
- Returns:
A list of ObjectIds for the user(s) found.
- Return type:
list[ObjectId]
application.resolvers.query.datafeed module#
application.resolvers.query.datafeed
application.resolvers.query.documents module#
Resolvers for querying Documents.
application.resolvers.query.integrations module#
application.resolvers.query.integrations
- application.resolvers.query.integrations.subsonic_init()#
Initializes and returns a SubsonicClient instance using configuration values.
Fetches the Subsonic server URL, username, and password from the configuration, then initializes and returns a SubsonicClient object.
- Returns:
An initialized Subsonic client.
- Return type:
subsonic.SubsonicClient
- Raises:
KeyError – If any required configuration value is missing.
application.resolvers.query.inventory module#
application.resolvers.query.inventory
application.resolvers.query.last_mutation module#
application.resolvers.query.last_mutation
- application.resolvers.query.last_mutation.resolve_get_last_mutation(_, _info)#
Retrieves information about the most recently called mutation.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
- Returns:
A dictionary containing details of the last mutation if available, otherwise None.
- Return type:
dict | None
application.resolvers.query.notification module#
application.resolvers.query.notification
- application.resolvers.query.notification.resolve_get_subscription(_, _info, auth)#
Resolves the retrieval of a subscription based on the provided authentication token.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
auth (str) – Authentication token used to identify the subscription.
- Returns:
The subscription data if found, otherwise None.
- Return type:
dict | None
- application.resolvers.query.notification.resolve_get_vapid_public_key(_, _info)#
Resolves the GraphQL query for retrieving the VAPID public key.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
- Returns:
The VAPID public key as a string.
- Return type:
str
application.resolvers.query.sessions module#
application.resolvers.query.sessions
application.resolvers.query.settings module#
application.resolvers.query.settings
- application.resolvers.query.settings.resolve_get_config(_, _info, name)#
Retrieves the configuration value for the given name.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
name (str) – The name of the configuration setting to retrieve.
- Returns:
The configuration value if found, otherwise None.
- Return type:
str | None
- application.resolvers.query.settings.resolve_get_enabled_modules(_, _info)#
Resolves and returns a list of enabled modules for the current caller.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
- Returns:
A list of enabled modules accessible to the caller based on strict permissions.
- Return type:
list
- application.resolvers.query.settings.resolve_get_groups(_, _info)#
Resolves the GraphQL query for retrieving a list of groups.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
- Returns:
A list of all user groups.
- Return type:
list
- application.resolvers.query.settings.resolve_get_modules(_, _info)#
Resolves and returns a list of modules accessible to the caller.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
- Returns:
A list of modules available to the caller based on permission checks.
- Return type:
list
- application.resolvers.query.settings.resolve_get_schema(_, _info)#
Resolves and returns the current GraphQL schema as a dictionary.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
- Returns:
The current GraphQL schema.
- Return type:
dict
- application.resolvers.query.settings.resolve_get_server_enabled_modules(_, _info, group)#
Retrieves the list of enabled server modules for a specified group.
- Parameters:
_ (Any) – Placeholder.
_info (GraphQLResolveInfo) – Information about the GraphQL execution state.
group (str | None) – The group identifier to filter enabled modules, or None for all groups.
- Returns:
A list of enabled module names for the specified group.
- Return type:
list
application.resolvers.query.users module#
application.resolvers.query.users
- application.resolvers.query.users.resolve_list_users(_, _info, restrict)#
Resolves and returns a list of users based on the caller’s permissions and the restrict flag.
- Parameters:
_ (Any) – Unused positional argument, typically the parent resolver.
_info (GraphQLResolveInfo) – GraphQL resolver info containing context and query details.
restrict (bool) – If True, restricts the user list to the caller’s groups. If False and caller is admin, returns all users.
- Returns:
A list of users filtered by permissions and group membership.
- Return type:
list
application.resolvers.query.weather module#
application.resolvers.query.weather
Module contents#
application.resolvers.query