Selected field names
Included relations
Protected OptionalapiPer-call API key override, set via apiKey.
ProtectedfiltersProtectedqueryProtectedselectedProtectedskipWhen true, this call bypasses the response cache. Set via skipCache.
ProtectedsubqueriesProtected Static ReadonlyMAX_Protected Static ReadonlyMAX_Protected Static ReadonlyMAX_Protected Static ReadonlyMAX_Protected Static ReadonlyMAX_Protected Static ReadonlyMAX_Protected Static ReadonlyQUERIES_Queries that return data directly without wrapping in a 'data' object. These queries follow a different GraphQL schema structure.
Use a specific API key for this call instead of the client's default key.
The Politics & War API key to authenticate this query with.
This query builder instance for method chaining.
ProtectedbuildBuild the final GraphQL query string with comprehensive validation.
Constructs a complete GraphQL query including:
Validation includes:
Whether to include pagination info in response
Complete GraphQL query string ready for execution
ProtectedsanitizeSanitize and escape a string value for safe GraphQL usage.
Validates input type and length, checks for null bytes, and escapes special characters including backslashes, quotes, newlines, carriage returns, tabs, form feeds, and backspaces.
The string to sanitize
Sanitized string with all special characters properly escaped
Select specific fields to retrieve from bulletins
Field names to select
New query instance with selected fields
ProtectedserializeSerialize an object to GraphQL format (enum values without quotes).
Validates object structure and prevents prototype pollution by:
Plain object to serialize (not arrays)
GraphQL-formatted object string in format {key:value, ...}
Bypass the response cache for this call.
Only meaningful when caching is enabled on the client (cache.enabled).
The result is fetched fresh from the API and is neither read from nor
written to the cache. No effect when caching is disabled.
This query builder instance for method chaining.
Query builder for fetching bulletin data from the Politics & War API.
Create new instances using the factory method:
pnwkit.queries.bulletins()Bulletins are announcements posted by nations and alliances.Features:
Example