OCHA-SPPB API PortalHumanitarian Action GraphQL API
API documentation · v1

Humanitarian Action GraphQL API

Get access, build queries, understand the data, and use the API in your applications.

On this page
01

Get started

Sign in, subscribe to a product, and run your first query.

What the API provides

The Humanitarian Action GraphQL API provides read-only access to humanitarian plans, projects, emergencies, organizations, locations, sectors, requirements and reported results. Use it in websites, dashboards, data pipelines and other applications.

This developer portal provides documentation, subscriptions and an API test console. The Evaluation product gives immediate access with limited usage. For regular use above those limits, request a higher tier from the SPPB-Tools team.

1. Sign in or create an account

OCHA users

Open Sign in, select Entra ID, and use your @un.org account.

Other users

Select Sign up and register with your email address and password. Activate your account using the link in the email, then sign in.

2. Subscribe to Evaluation

  1. Once signed in, open the Products page.
  2. Select Evaluation.
  3. Enter a subscription name, such as your-name-evaluation.
  4. Select Subscribe. Your subscription is active immediately.

If no APIs or products are listed, sign in first. You need an active product subscription to call the API.

3. Run a query in the portal

  1. Open APIs and select the Humanitarian Action GraphQL API, version v1.
  2. Select Try it or Try this operation to open the test console.
  3. Select your active Evaluation subscription if prompted.
  4. Paste the query below into the query field. It needs no variables; leave Variables empty or enter {}.
  5. Send the request and review the JSON response.
GraphQL query
query Currencies {
  currencies(first: 10, orderBy: { Id: ASC }) {
    items { Id Code }
    hasNextPage
    endCursor
  }
}

The Sample Queries section contains more examples. Copy the GraphQL query and its separate JSON variables into their corresponding fields.

4. Use the API from another tool

Open Profile to find your subscription keys. Send either active key in the Ocp-Apim-Subscription-Key header.

SettingValue
MethodPOST
URLhttps://api.humanitarianaction.info/graphql/v1
Content-Typeapplication/json
Ocp-Apim-Subscription-KeyYour active subscription key
BodyJSON containing query and, when used, variables

Your portal sign-in identifies your account. Your subscription key provides access when calling this endpoint from Postman or an application. See Use the API in applications for complete request examples.

Need more usage?

Contact the SPPB-Tools team to request a higher subscription tier. Include your organization, application or project, expected calls per minute and per day, and the data you need. Use the limits shown on your product page when planning requests.

Documentation and support

Read the sections in order: GraphQL basics, Filters and pagination, API model and relationships, and Schema reference. Use Requirements and results for numeric data and Sample Queries for copyable examples.

Documentation, the exported schema and reusable queries are also available in the GitHub repository. Contact the SPPB-Tools team if you need help with access or a query.

02

GraphQL basics

Build a query step by step: select fields, add a fixed filter, then use variables and relationships.

One endpoint, a query in the request body

Send queries to https://api.humanitarianaction.info/graphql/v1. The query names the data and fields to return. The response follows that selection inside a top-level data object.

REST patternThis GraphQL API
Separate resource URLsOne GraphQL URL for the documented queries
Server-defined resource responseSelect the fields your application needs
Query-string filtersUse the schema’s filter input
Related records may need separate callsSelect a relationship within the parent object
GET/POST/PATCH/DELETE by operationSend read-only GraphQL queries as HTTP POST

The supplied schema has a Query type and no Mutation or Subscription root. An APIM product subscription means API access; it is not a GraphQL real-time subscription.

1. Choose a collection and fields

GraphQL query
query Currencies {
  currencies(first: 10, orderBy: { Id: ASC }) {
    items { Id Code }
    hasNextPage
    endCursor
  }
}
  • currencies is a root field under Query.
  • items is the array of currency records.
  • Id and Code are fields on each record.
  • first: 10 requests up to ten records. hasNextPage tells you whether more remain.
Illustrative response — values shown only to explain the structure
{
  "data": {
    "currencies": {
      "items": [
        {
          "Id": 1,
          "Code": "USD"
        }
      ],
      "hasNextPage": false,
      "endCursor": null
    }
  }
}

2. Filter using a fixed value

GraphQL query
query Plan1202 {
  plans(first: 1, filter: { Id: { eq: 1202 } }) {
    items { Id Name PlanCode StartDate EndDate }
  }
}

Id: { eq: 1202 } means “return the plan whose ID equals 1202”. IDs are unique, so first: 1 is enough for this lookup. Replace 1202 with an ID returned by a plan list query.

An empty items: [] array can be a successful response: no record matched. It is not automatically an API error.

3. Put changing values in Variables

GraphQL query
query PlanById($planId: Int!) {
  plans(first: 1, filter: { Id: { eq: $planId } }) {
    items { Id Name PlanCode StartDate EndDate }
  }
}
Variables
{
  "planId": 1202
}
  • $planId is declared in the query and used in the filter.
  • Int! requires an integer value. The exclamation mark means it cannot be omitted or null.
  • The JSON key is "planId", without $.
  • Use a JSON number such as 1202, not a quoted string such as "1202".

Changing Variables does not require editing the query. Match each variable’s type to the schema; some IDs use Short or UnsignedByte, not Int.

4. Request related data

GraphQL query
query PlanWithContext($planId: Int!) {
  plans(first: 1, filter: { Id: { eq: $planId } }) {
    items {
      Id
      Name
      emergency(first: 10, orderBy: { Id: ASC }) {
        items { Id Name EmergencyType EmergencyDate }
        hasNextPage
        endCursor
      }
      location(first: 10, filter: { AdminLevel: { eq: 0 } }, orderBy: { Id: ASC }) {
        items { Id Name ISO3 }
        hasNextPage
        endCursor
      }
    }
  }
}
Variables
{
  "planId": 1202
}

The response has a plan in data.plans.items, its emergencies in emergency.items, and country locations in location.items. The relationship already selects records linked to that plan; its filter narrows the linked records further.

A collection relationship returns a connection with items. A single-object relationship does not use items. For example, Project.plan is one Plan object, while Plan.project is a paged collection.

GraphQL query
query ProjectWithPlan($projectId: Int!) {
  projects(first: 1, filter: { Id: { eq: $projectId } }) {
    items {
      Id
      Name
      ProjectCode
      PlanId
      plan { Id Name PlanCode }
    }
  }
}
Variables
{
  "projectId": 12345
}

5. Rename response fields if useful

GraphQL query
query PlanAliases {
  plans(first: 1, filter: { Id: { eq: 1202 } }) {
    items { planId: Id planName: Name }
  }
}

planId: Id returns the schema field Id under the response name planId. Filters still use the schema’s original field names.

Keep each query focused

Field names are case-sensitive: Id differs from id, and Organization.url is lowercase. Begin with a small page and a few fields. Add relationships only when needed, and inspect errors as well as data.

Use the Sample Queries section for complete examples.

03

Filters and pagination

Select matching records, order the results, and retrieve every page you need.

Direct filters

GraphQL query
query CurrencyUSD {
  currencies(first: 1, filter: { Code: { eq: "USD" } }) {
    items { Id Code }
  }
}

This checks a field on the selected object. Several fields within the same filter apply together: each must match.

OperatorMeaningExample input
eq / neqEqual / not equalId: { eq: 1202 }
inMatch one of a list of valuesId: { in: [1202, 1263] }
gt / gteGreater than / greater than or equalId: { gte: 1200 }
lt / lteLess than / less than or equalId: { lt: 1300 }
containsText contains a valueName: { contains: "OCHA" }
startsWith / endsWithText begins / ends with a valueName: { startsWith: "OCHA" }
isNullCheck whether the field is nullParentId: { isNull: true }

Available operators depend on the field’s filter input type. For example, contains applies to String fields, not Int fields. Text matching follows the underlying service settings; do not assume case-sensitive or case-insensitive matching.

AND, OR and lists

Use or: [...] when either condition may match. Use and: [...] for an explicit group of conditions that must all match.

GraphQL query
query OrganizationsNameOrId {
  organizations(
    first: 20
    filter: { or: [ { Name: { contains: "OCHA" } }, { Id: { eq: 123 } } ] }
    orderBy: { Id: ASC }
  ) {
    items { Id Name Abbreviation }
    hasNextPage
    endCursor
  }
}

in is simpler when comparing several values against the same field:

GraphQL query
query PlansByIds {
  plans(first: 10, filter: { Id: { in: [1202, 1263] } }, orderBy: { Id: ASC }) {
    items { Id Name PlanCode }
    hasNextPage
    endCursor
  }
}

For missing values, use isNull rather than treating null as an ID or an empty string.

GraphQL query
query LocationsWithoutParent {
  locations(first: 20, filter: { ParentId: { isNull: true } }, orderBy: { Id: ASC }) {
    items { Id Name AdminLevel ParentId }
    hasNextPage
    endCursor
  }
}

Relationship filters

GraphQL query
query PlansByYear($year: Int!, $first: Int!, $after: String) {
  plans(
    first: $first
    after: $after
    filter: { period: { CalendarYear: { eq: $year } } }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      Name
      PlanCode
      period(first: 10, filter: { CalendarYear: { eq: $year } }, orderBy: { Id: ASC }) {
        items { Id CalendarYear PeriodType }
        hasNextPage
        endCursor
      }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "year": 2026,
  "first": 20,
  "after": null
}

The outer period.CalendarYear filter selects plans that have a related period for the year. The inner filter limits the period rows returned under each selected plan. Selecting a nested field by itself does not filter the parent collection.

A relationship filter does not require that relationship to be included in the response. For example, you can filter plans through period and return only Id and Name.

Ordering and cursor pagination

GraphQL query
query PlansPage($first: Int!, $after: String) {
  plans(first: $first, after: $after, orderBy: { Id: ASC }) {
    items { Id Name PlanCode PlanType StartDate EndDate }
    hasNextPage
    endCursor
  }
}
Variables
{
  "first": 20,
  "after": null
}
Field or argumentPurpose
firstMaximum requested records for this page. Start with 20; increase only as needed.
afterCursor returned by the previous request; null for the first page.
orderBySort selected records. These examples use the unique Id field for predictable ordering.
itemsThe current page of records.
hasNextPageWhether another page remains.
endCursorOpaque token to send as after for the next page.
  1. Send the first request with after: null.
  2. Read and process data.plans.items.
  3. If hasNextPage is true, copy that connection’s endCursor into after.
  4. Repeat with the same filter and ordering until hasNextPage is false.
Variables for the next page
{
  "first": 20,
  "after": "PASTE_THE_RETURNED_END_CURSOR_HERE"
}

Do not decode, build or reuse a cursor from a different query. If the filter or sort changes, restart with after: null. Data can change while you page; the responses are not a promised frozen snapshot.

Nested collections page separately

A plan’s project, location and attachment collections can each have more rows than their first limit. The outer plan cursor does not continue those collections.

When a nested collection has more data, it is usually simpler to start from its root collection and filter by the parent ID:

GraphQL query
query ProjectsByPlan($planId: Int!, $first: Int!, $after: String) {
  projects(first: $first, after: $after, filter: { PlanId: { eq: $planId } }, orderBy: { Id: ASC }) {
    items { Id Name ProjectCode PlanId IsPublished CurrentRequestedFunds }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}

This retrieves projects for one plan using one project cursor. It avoids having a different nested cursor for each plan in an outer page.

Avoid silent truncation

Select hasNextPage and endCursor for collections that may need more than one page. A query without first still has a service page size; it does not mean “return everything”. Each additional page is another API request and uses your product allowance.

04

API model and relationships

Choose the right starting object and follow the relationships defined in the supplied GraphQL schema.

Planning context

PlanCentral planning context
CoordinationEntityLocal field cluster or other structure
SectorGlobal reference sector

These are connected objects, not levels you must always retrieve together. A plan provides context; a coordination entity supplies the plan-level name; a sector supplies the global reference name.

Metric definitions and values

AttachmentMetric definition and owner
AttachmentFactPlanned value and revision
AttachmentWhat is measured
MeasurementReported observation
MeasurementFactReported value

Attachment.Name describes the metric, while AttachmentFact.ValueNum contains a planned value. Reported results use MeasurementFact.ValueNum. These rows can have different meanings, dimensions and reporting periods; they are not interchangeable.

Main objects

Plan · plans

The central humanitarian planning context. Select its periods, geography, coordination entities, projects or attachments when needed.

Period · periods

A calendar or planning period. CalendarYear is here; a plan can be linked to more than one period.

Emergency · emergencies

Emergency or crisis context, with links to plans and affected locations.

Location · locations

Country or subnational geography. AdminLevel, ParentId, CountryId and Path help describe its hierarchy.

CoordinationEntity · coordinationEntities

A plan-level coordination structure. The supplied examples identify field clusters with EntityTypeId 10.

Sector · sectors

A global sector reference. A locally named coordination entity can link to one or several global sectors.

LogframeEntity · logframeEntities

An element of a plan’s logical framework. Resolve EntityTypeId to distinguish objectives, activities and other levels.

Project · projects

A humanitarian project, with its plan and links to organizations, sectors, locations and coordination entities.

Organization · organizations

An organization reference with names, abbreviation, classifications and links to plans or projects.

Attachment · attachments

A metric definition and its owner. AttachmentType distinguishes Cost, Caseload and Indicator in the supplied documentation; facts hold its values.

AttachmentFact · attachmentFacts

A planned numeric value, revision and optional dimensions for an attachment.

Measurement · measurements

A reported observation for an attachment, with a link to its plan reporting period.

MeasurementFact · measurementFacts

A reported numeric value and optional dimensions for a measurement.

PlanReportingPeriod · planReportingPeriods

A reporting period attached to a plan; measurements link here for dates and period number.

MetricType · metricTypes

Reference data that identifies the meaning of a fact’s MetricTypeId.

RevisionState · revisionStates

Reference data that explains RevisionStateId and its display name.

Currency · currencies

Currency identifier and code reference. The schema does not define a direct Currency relationship on AttachmentFact.

Unit · units

A metric unit linked from Attachment or Measurement. Check this context before combining numeric values.

Common relationship paths

Parent typeField to selectReturnsUse
PlanperiodPeriodConnectionPlanning periods
PlanemergencyEmergencyConnectionEmergency context
PlanlocationLocationConnectionLinked countries or other locations
PlancoordinationEntityCoordinationEntityConnectionPlan-level structures
PlanprojectProjectConnectionProjects within the plan
PlanattachmentAttachmentConnectionLinked metric definitions; filter owner and type
CoordinationEntitysectorSectorConnectionGlobal sector mappings
CoordinationEntityattachmentAttachmentConnectionMetrics owned by coordination entities
ProjectplanPlanThe project’s plan
ProjectorganizationOrganizationConnectionLinked organizations
ProjectsectorSectorConnectionLinked global sectors
LogframeEntityattachmentAttachmentConnectionMetrics attached to framework elements
AttachmentattachmentFactAttachmentFactConnectionPlanned values and revisions
AttachmentmeasurementMeasurementConnectionReported observations
AttachmentFactattachmentAttachmentDefinition and owner of the fact
AttachmentFactmetricTypeMetricTypeMeaning of the metric
MeasurementmeasurementFactMeasurementFactConnectionReported values
MeasurementplanReportingPeriodPlanReportingPeriodReporting dates and period
MeasurementFactmeasurementMeasurementObservation that owns the value

A Connection result is a paged collection with items, hasNextPage and endCursor. A result such as Plan or MetricType is one object and is selected directly without items. Nullable relationships may return null.

Example: projects within a plan

GraphQL query
query ProjectsByPlan($planId: Int!, $first: Int!, $after: String) {
  projects(first: $first, after: $after, filter: { PlanId: { eq: $planId } }, orderBy: { Id: ASC }) {
    items { Id Name ProjectCode PlanId IsPublished CurrentRequestedFunds }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}

Use Project.PlanId for this direct filter. To retrieve the owning plan’s fields, select Project.plan { Id Name }. For the reverse direction, select Plan.project { items { ... } }.

Example: local clusters and global sectors

GraphQL query
query FieldClustersByPlan($planId: Int!, $first: Int!, $after: String) {
  coordinationEntities(
    first: $first
    after: $after
    filter: { PlanId: { eq: $planId }, EntityTypeId: { eq: 10 } }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      Name
      PlanId
      EntityTypeId
      sector(first: 10, orderBy: { Id: ASC }) {
        items { Id Name SectorCode }
        hasNextPage
        endCursor
      }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}

The outer records are local coordination entities. Each sector.items array contains their global sector mappings. Use Sectors by plan on the Sample Queries page if you only need the global sector list.

Select the right starting point

  • Start at plans for a plan and its context.
  • Start at projects for a project list and its PlanId filter.
  • Start at attachmentFacts for planned values, requirements or disaggregations.
  • Start at measurementFacts for reported values.
  • Start at locations, organizations or a reference collection when those records are the result you need.

The schema also exposes explicit link collections, such as planLocationRels and projectSectorRels. Use them if you need the link IDs themselves. Most consumers can follow the object relationships instead.

05

Schema reference

Read the exported schema and look up the collections, fields, input types and relationships available to consumers.

What api_schema.graphql tells you

The file api-schema/api_schema.graphql is the GraphQL API contract. It describes query fields, object fields, relationships, filter inputs, ordering inputs and data types. It contains no data rows or subscription keys.

Find it in the repository’s api-schema folder or the GitHub repository. Open it in a text editor and search for type Query, type Plan or a filter input such as PlanFilterInput. The reference below is generated from the supplied schema export. Download the schema from this repository.

This file is an exported snapshot. It does not update automatically when the API changes. If a field is rejected by the live endpoint, compare against the schema currently shown by the API console or request an updated export from the API team.

How to read the schema

Schema excerpt — exact declarations for this example
type Currency {
  Id: Short!
  Code: String!
  # Additional fields are omitted from this excerpt.
}
NotationMeaning
Id: Int!A non-null integer output field.
Name: StringA string that may be null.
[Plan!]!A non-null list of non-null Plan objects. The list can still be empty.
Project.plan: PlanOne related Plan object, which may be null.
Plan.project: ProjectConnectionA nullable paged collection of Project records.
$id: Short!A required variable using the Short scalar. Use the type required by the filter, even if an Int seems similar.

The scalar type attached to an ID matters. Plan.Id is Int; Currency.Id, Sector.Id and Emergency.Id are Short; RevisionState.Id is UnsignedByte.

Common arguments and result fields

NameType or roleUse
firstInt argumentRequested page size
afterString argumentCursor from the same collection’s previous page
filterObject-specific inputFor example, PlanFilterInput
orderByObject-specific inputFor example, PlanOrderByInput; enum values are ASC and DESC
itemsArray of object recordsThe current result page
hasNextPageBoolean!Whether another page remains
endCursorStringOpaque continuation cursor

Connections also expose a groupBy field in this export. The examples here use raw rows so you can inspect metric, revision and dimension context before aggregating. If you use Fabric aggregation, request grouped results separately from items and check the current Fabric aggregation restrictions.

Custom scalar types

TypeMeaning in this schema
UnsignedByteUnsigned 8-bit integer
ShortSigned 16-bit integer
LongSigned 64-bit integer
Single32-bit floating-point number
DecimalHigh-precision decimal; choose client handling that preserves the precision you need
DateTimeDate and time with time-zone offset information
Base64StringBase64-encoded bytes
LocalTimeTime of day without date or time-zone information

JSON has no separate Decimal or Short type. Variable declarations still use the GraphQL types above. For high-precision amounts, do not assume binary floating-point arithmetic will preserve every decimal digit.

Collections and object fields (75)

Browse or search all 75 collections

No matching schema entry.

Plan plans

The central humanitarian planning context. Select its periods, geography, coordination entities, projects or attachments when needed.

Root field: plans · Object type: Plan · Result: PlanConnection!

FieldGraphQL typeKindNotes
IdInt!ValuePlan identifier; use Int variables for ID filters.
NameString!ValuePlan name.
ShortNameStringValue
DescriptionStringValue
PlanSubTitleStringValue
StartDateDateTimeValue
EndDateDateTimeValue
PlanTypeStringValue
PlanLanguageStringValue
PlanLanguageCodeStringValue
PlanClusterTypeStringValue
PlanCostingStringValue
IsPartOfGHOBoolean!Value
IsForHPCProjectsBoolean!Value
RevisionStateStringValue
PlanCodeStringValueCode supplied for the plan.
CustomLocationCodeStringValue
FocusedLocationNameStringValue
FocusedLocationIdIntValue
CurrentReportingPeriodIdIntValue
LastPublishedReportingPeriodIdIntValue
DocumentPublishDateDateTimeValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
IsLegacyCurrentVersionBoolean!ValueLegacy version flag; not a numeric requirement revision.
fileAssetFileAssetConnectionPaged relationshipSelect items and page information.
textContentTextContentConnectionPaged relationshipSelect items and page information.
emergencyEmergencyConnectionPaged relationshipSelect items and page information.
periodPeriodConnectionPaged relationshipSelect items and page information.
categoryCategoryConnectionPaged relationshipSelect items and page information.
organizationOrganizationConnectionPaged relationshipSelect items and page information.
locationLocationConnectionPaged relationshipSelect items and page information.
entityPrototypeEntityPrototypeConnectionPaged relationshipSelect items and page information.
attachmentPrototypeAttachmentPrototypeConnectionPaged relationshipSelect items and page information.
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
logframeEntityLogframeEntityConnectionPaged relationshipSelect items and page information.
measurementMeasurementConnectionPaged relationshipSelect items and page information.
attachmentAttachmentConnectionPaged relationshipSelect items and page information.
planReportingPeriodPlanReportingPeriodConnectionPaged relationshipSelect items and page information.
projectProjectConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: PlanFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
ShortNameStringFilterInput
DescriptionStringFilterInput
PlanSubTitleStringFilterInput
StartDateDateTimeFilterInput
EndDateDateTimeFilterInput
PlanTypeStringFilterInput
PlanLanguageStringFilterInput
PlanLanguageCodeStringFilterInput
PlanClusterTypeStringFilterInput
PlanCostingStringFilterInput
IsPartOfGHOBooleanFilterInput
IsForHPCProjectsBooleanFilterInput
RevisionStateStringFilterInput
PlanCodeStringFilterInput
CustomLocationCodeStringFilterInput
FocusedLocationNameStringFilterInput
FocusedLocationIdIntFilterInput
CurrentReportingPeriodIdIntFilterInput
LastPublishedReportingPeriodIdIntFilterInput
DocumentPublishDateDateTimeFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
IsLegacyCurrentVersionBooleanFilterInput
fileAssetFileAssetFilterInput
textContentTextContentFilterInput
emergencyEmergencyFilterInput
periodPeriodFilterInput
categoryCategoryFilterInput
organizationOrganizationFilterInput
locationLocationFilterInput
entityPrototypeEntityPrototypeFilterInput
attachmentPrototypeAttachmentPrototypeFilterInput
coordinationEntityCoordinationEntityFilterInput
logframeEntityLogframeEntityFilterInput
measurementMeasurementFilterInput
attachmentAttachmentFilterInput
planReportingPeriodPlanReportingPeriodFilterInput
projectProjectFilterInput
and[PlanFilterInput]
or[PlanFilterInput]

orderBy: PlanOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
ShortNameOrderBy
DescriptionOrderBy
PlanSubTitleOrderBy
StartDateOrderBy
EndDateOrderBy
PlanTypeOrderBy
PlanLanguageOrderBy
PlanLanguageCodeOrderBy
PlanClusterTypeOrderBy
PlanCostingOrderBy
IsPartOfGHOOrderBy
IsForHPCProjectsOrderBy
RevisionStateOrderBy
PlanCodeOrderBy
CustomLocationCodeOrderBy
FocusedLocationNameOrderBy
FocusedLocationIdOrderBy
CurrentReportingPeriodIdOrderBy
LastPublishedReportingPeriodIdOrderBy
DocumentPublishDateOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
IsLegacyCurrentVersionOrderBy
Period periods

A calendar or planning period. CalendarYear is here; a plan can be linked to more than one period.

Root field: periods · Object type: Period · Result: PeriodConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameString!Value
DescriptionStringValue
PeriodTypeString!Value
CalendarYearIntValueCalendar year used in the plans-by-year examples.
StartDateDateTime!Value
EndDateDateTime!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
planPlanConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: PeriodFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
DescriptionStringFilterInput
PeriodTypeStringFilterInput
CalendarYearIntFilterInput
StartDateDateTimeFilterInput
EndDateDateTimeFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
planPlanFilterInput
and[PeriodFilterInput]
or[PeriodFilterInput]

orderBy: PeriodOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DescriptionOrderBy
PeriodTypeOrderBy
CalendarYearOrderBy
StartDateOrderBy
EndDateOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Emergency emergencies

Emergency or crisis context, with links to plans and affected locations.

Root field: emergencies · Object type: Emergency · Result: EmergencyConnection!

FieldGraphQL typeKindNotes
IdShort!ValueShort identifier, not Int.
NameString!Value
EmergencyTypeStringValue
DescriptionStringValue
EmergencyDateDateTime!Value
GlideNumberStringValue
IsLevel3Boolean!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
locationLocationConnectionPaged relationshipSelect items and page information.
planPlanConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: EmergencyFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
EmergencyTypeStringFilterInput
DescriptionStringFilterInput
EmergencyDateDateTimeFilterInput
GlideNumberStringFilterInput
IsLevel3BooleanFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
locationLocationFilterInput
planPlanFilterInput
and[EmergencyFilterInput]
or[EmergencyFilterInput]

orderBy: EmergencyOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
EmergencyTypeOrderBy
DescriptionOrderBy
EmergencyDateOrderBy
GlideNumberOrderBy
IsLevel3OrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Location locations

Country or subnational geography. AdminLevel, ParentId, CountryId and Path help describe its hierarchy.

Root field: locations · Object type: Location · Result: LocationConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameString!Value
AdminLevelIntValueCountry level is 0 in the supplied documentation; higher levels describe subnational areas.
ISO3StringValueCountry code field where supplied.
PcodeStringValue
DescriptionStringValue
LatitudeDecimalValue
LongitudeDecimalValue
ParentIdIntValueParent location identifier; nullable.
RecordStatusString!ValueStatus such as Active or Inactive in the supplied documentation.
ActiveUntilDateTimeValue
CountryIdIntValue
CountryISO3StringValueCountry context for the location.
PathStringValueHierarchy path stored on the location; a String, not a relationship field.
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
emergencyEmergencyConnectionPaged relationshipSelect items and page information.
organizationOrganizationConnectionPaged relationshipSelect items and page information.
projectProjectConnectionPaged relationshipSelect items and page information.
planPlanConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: LocationFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
AdminLevelIntFilterInput
ISO3StringFilterInput
PcodeStringFilterInput
DescriptionStringFilterInput
LatitudeDecimalFilterInput
LongitudeDecimalFilterInput
ParentIdIntFilterInput
RecordStatusStringFilterInput
ActiveUntilDateTimeFilterInput
CountryIdIntFilterInput
CountryISO3StringFilterInput
PathStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
emergencyEmergencyFilterInput
organizationOrganizationFilterInput
projectProjectFilterInput
planPlanFilterInput
and[LocationFilterInput]
or[LocationFilterInput]

orderBy: LocationOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
AdminLevelOrderBy
ISO3OrderBy
PcodeOrderBy
DescriptionOrderBy
LatitudeOrderBy
LongitudeOrderBy
ParentIdOrderBy
RecordStatusOrderBy
ActiveUntilOrderBy
CountryIdOrderBy
CountryISO3OrderBy
PathOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
CoordinationEntity coordinationEntities

A plan-level coordination structure. The supplied examples identify field clusters with EntityTypeId 10.

Root field: coordinationEntities · Object type: CoordinationEntity · Result: CoordinationEntityConnection!

FieldGraphQL typeKindNotes
IdInt!Value
EntityTypeIdShort!ValueResolve via entityType; the supplied field-cluster examples use 10.
PlanIdIntValuePlan context for the coordination entity.
NameString!Value
DescriptionStringValue
CustomReferenceStringValue
ComposedReferenceStringValue
IsOverridingBoolean!Value
HPCTagsStringValue
IconIdShortValue
HpcEntityPrototypeIdIntValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
projectBudgetProjectBudgetConnectionPaged relationshipSelect items and page information.
entityTypeEntityTypeSingle object relationshipSelect this object’s fields directly; do not add items.
iconIconSingle object relationshipSelect this object’s fields directly; do not add items.
fileAssetFileAssetConnectionPaged relationshipSelect items and page information.
textContentTextContentConnectionPaged relationshipSelect items and page information.
contactContactConnectionPaged relationshipSelect items and page information.
sectorSectorConnectionPaged relationshipSelect items and page information.
logframeEntityLogframeEntityConnectionPaged relationshipSelect items and page information.
attachmentAttachmentConnectionPaged relationshipSelect items and page information.
projectProjectConnectionPaged relationshipSelect items and page information.
planPlanSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: CoordinationEntityFilterInput

Input fieldType
IdIntFilterInput
EntityTypeIdShortFilterInput
PlanIdIntFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CustomReferenceStringFilterInput
ComposedReferenceStringFilterInput
IsOverridingBooleanFilterInput
HPCTagsStringFilterInput
IconIdShortFilterInput
HpcEntityPrototypeIdIntFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
projectBudgetProjectBudgetFilterInput
entityTypeEntityTypeFilterInput
iconIconFilterInput
fileAssetFileAssetFilterInput
textContentTextContentFilterInput
contactContactFilterInput
sectorSectorFilterInput
logframeEntityLogframeEntityFilterInput
attachmentAttachmentFilterInput
projectProjectFilterInput
planPlanFilterInput
and[CoordinationEntityFilterInput]
or[CoordinationEntityFilterInput]

orderBy: CoordinationEntityOrderByInput

Input fieldType
IdOrderBy
EntityTypeIdOrderBy
PlanIdOrderBy
NameOrderBy
DescriptionOrderBy
CustomReferenceOrderBy
ComposedReferenceOrderBy
IsOverridingOrderBy
HPCTagsOrderBy
IconIdOrderBy
HpcEntityPrototypeIdOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Sector sectors

A global sector reference. A locally named coordination entity can link to one or several global sectors.

Root field: sectors · Object type: Sector · Result: SectorConnection!

FieldGraphQL typeKindNotes
IdShort!ValueShort identifier, not Int.
NameString!Value
SectorTypeStringValue
SectorCodeStringValueGlobal sector code.
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
projectBudgetProjectBudgetConnectionPaged relationshipSelect items and page information.
sectorParentChildRelSectorParentChildRelConnectionPaged relationshipSelect items and page information.
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
projectProjectConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: SectorFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
SectorTypeStringFilterInput
SectorCodeStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
projectBudgetProjectBudgetFilterInput
sectorParentChildRelSectorParentChildRelFilterInput
coordinationEntityCoordinationEntityFilterInput
projectProjectFilterInput
and[SectorFilterInput]
or[SectorFilterInput]

orderBy: SectorOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
SectorTypeOrderBy
SectorCodeOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
LogframeEntity logframeEntities

An element of a plan’s logical framework. Resolve EntityTypeId to distinguish objectives, activities and other levels.

Root field: logframeEntities · Object type: LogframeEntity · Result: LogframeEntityConnection!

FieldGraphQL typeKindNotes
IdInt!Value
EntityTypeIdShort!Value
PlanIdInt!Value
NameString!Value
DescriptionStringValue
CoordinationEntityIdIntValue
CustomReferenceStringValue
ComposedReferenceStringValue
SortOrderIntValue
HpcEntityPrototypeIdIntValue
NamePrefixStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
logframeEntitySupportRelLogframeEntitySupportRelConnectionPaged relationshipSelect items and page information.
entityTypeEntityTypeSingle object relationshipSelect this object’s fields directly; do not add items.
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
attachmentAttachmentConnectionPaged relationshipSelect items and page information.
projectProjectConnectionPaged relationshipSelect items and page information.
planPlanSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: LogframeEntityFilterInput

Input fieldType
IdIntFilterInput
EntityTypeIdShortFilterInput
PlanIdIntFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CoordinationEntityIdIntFilterInput
CustomReferenceStringFilterInput
ComposedReferenceStringFilterInput
SortOrderIntFilterInput
HpcEntityPrototypeIdIntFilterInput
NamePrefixStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
logframeEntitySupportRelLogframeEntitySupportRelFilterInput
entityTypeEntityTypeFilterInput
coordinationEntityCoordinationEntityFilterInput
attachmentAttachmentFilterInput
projectProjectFilterInput
planPlanFilterInput
and[LogframeEntityFilterInput]
or[LogframeEntityFilterInput]

orderBy: LogframeEntityOrderByInput

Input fieldType
IdOrderBy
EntityTypeIdOrderBy
PlanIdOrderBy
NameOrderBy
DescriptionOrderBy
CoordinationEntityIdOrderBy
CustomReferenceOrderBy
ComposedReferenceOrderBy
SortOrderOrderBy
HpcEntityPrototypeIdOrderBy
NamePrefixOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Project projects

A humanitarian project, with its plan and links to organizations, sectors, locations and coordination entities.

Root field: projects · Object type: Project · Result: ProjectConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameString!Value
ProjectCodeStringValue
DescriptionStringValue
StartDateDateTimeValue
EndDateDateTimeValue
IsPublishedBoolean!Value
ObjectiveStringValue
ImplementingPartnersStringValue
ImplementationStatusStringValue
CurrentRequestedFundsDecimalValueRequested funds carried on this project record; not a plan requirement total.
TotalProjectTargetDecimalValue
PlanIdIntValueDirect plan filter for projects.
PgSqlPdfStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
projectBudgetProjectBudgetConnectionPaged relationshipSelect items and page information.
commentCommentConnectionPaged relationshipSelect items and page information.
userAccountUserAccountConnectionPaged relationshipSelect items and page information.
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
logframeEntityLogframeEntityConnectionPaged relationshipSelect items and page information.
contactContactConnectionPaged relationshipSelect items and page information.
sectorSectorConnectionPaged relationshipSelect items and page information.
organizationOrganizationConnectionPaged relationshipSelect items and page information.
locationLocationConnectionPaged relationshipSelect items and page information.
planPlanSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: ProjectFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
ProjectCodeStringFilterInput
DescriptionStringFilterInput
StartDateDateTimeFilterInput
EndDateDateTimeFilterInput
IsPublishedBooleanFilterInput
ObjectiveStringFilterInput
ImplementingPartnersStringFilterInput
ImplementationStatusStringFilterInput
CurrentRequestedFundsDecimalFilterInput
TotalProjectTargetDecimalFilterInput
PlanIdIntFilterInput
PgSqlPdfStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
projectBudgetProjectBudgetFilterInput
commentCommentFilterInput
userAccountUserAccountFilterInput
coordinationEntityCoordinationEntityFilterInput
logframeEntityLogframeEntityFilterInput
contactContactFilterInput
sectorSectorFilterInput
organizationOrganizationFilterInput
locationLocationFilterInput
planPlanFilterInput
and[ProjectFilterInput]
or[ProjectFilterInput]

orderBy: ProjectOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
ProjectCodeOrderBy
DescriptionOrderBy
StartDateOrderBy
EndDateOrderBy
IsPublishedOrderBy
ObjectiveOrderBy
ImplementingPartnersOrderBy
ImplementationStatusOrderBy
CurrentRequestedFundsOrderBy
TotalProjectTargetOrderBy
PlanIdOrderBy
PgSqlPdfOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Organization organizations

An organization reference with names, abbreviation, classifications and links to plans or projects.

Root field: organizations · Object type: Organization · Result: OrganizationConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameString!Value
AbbreviationStringValue
urlStringValueOrganization URL field; lowercase spelling is significant.
NativeNameStringValue
CommentsStringValue
NotesStringValue
CollectiveIndBoolean!Value
IsVerifiedBoolean!Value
NewOrganizationIdIntValue
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
projectBudgetProjectBudgetConnectionPaged relationshipSelect items and page information.
organizationParentChildRelOrganizationParentChildRelConnectionPaged relationshipSelect items and page information.
locationLocationConnectionPaged relationshipSelect items and page information.
categoryCategoryConnectionPaged relationshipSelect items and page information.
projectProjectConnectionPaged relationshipSelect items and page information.
planPlanConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: OrganizationFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
AbbreviationStringFilterInput
urlStringFilterInput
NativeNameStringFilterInput
CommentsStringFilterInput
NotesStringFilterInput
CollectiveIndBooleanFilterInput
IsVerifiedBooleanFilterInput
NewOrganizationIdIntFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
projectBudgetProjectBudgetFilterInput
organizationParentChildRelOrganizationParentChildRelFilterInput
locationLocationFilterInput
categoryCategoryFilterInput
projectProjectFilterInput
planPlanFilterInput
and[OrganizationFilterInput]
or[OrganizationFilterInput]

orderBy: OrganizationOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
AbbreviationOrderBy
urlOrderBy
NativeNameOrderBy
CommentsOrderBy
NotesOrderBy
CollectiveIndOrderBy
IsVerifiedOrderBy
NewOrganizationIdOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Attachment attachments

A metric definition and its owner. AttachmentType distinguishes Cost, Caseload and Indicator in the supplied documentation; facts hold its values.

Root field: attachments · Object type: Attachment · Result: AttachmentConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameStringValue
PlanIdIntValuePlan context; does not by itself prove that the Plan owns this attachment.
EntityIdIntValueOwner identifier within EntityMainType.
EntityTypeIdShortValue
EntityMainTypeStringValueOwner class; supplied examples use Plan or CoordinationEntity.
AttachmentTypeString!ValueMetric definition type; supplied examples use Cost, Caseload or Indicator.
CustomReferenceStringValue
HasDisaggregatedDataBoolean!Value
UnitIdShortValueResolve the metric unit through unit.
CalculationMethodStringValue
DescriptionStringValue
AttachmentPrototypeIdIntValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
attachmentPrototypeAttachmentPrototypeSingle object relationshipSelect this object’s fields directly; do not add items.
unitUnitSingle object relationshipSelect this object’s fields directly; do not add items.
logframeEntityLogframeEntitySingle object relationshipSelect this object’s fields directly; do not add items.
coordinationEntityCoordinationEntitySingle object relationshipSelect this object’s fields directly; do not add items.
entityTypeEntityTypeSingle object relationshipSelect this object’s fields directly; do not add items.
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
measurementMeasurementConnectionPaged relationshipSelect items and page information.
planPlanSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: AttachmentFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
PlanIdIntFilterInput
EntityIdIntFilterInput
EntityTypeIdShortFilterInput
EntityMainTypeStringFilterInput
AttachmentTypeStringFilterInput
CustomReferenceStringFilterInput
HasDisaggregatedDataBooleanFilterInput
UnitIdShortFilterInput
CalculationMethodStringFilterInput
DescriptionStringFilterInput
AttachmentPrototypeIdIntFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
attachmentPrototypeAttachmentPrototypeFilterInput
unitUnitFilterInput
logframeEntityLogframeEntityFilterInput
coordinationEntityCoordinationEntityFilterInput
entityTypeEntityTypeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
measurementMeasurementFilterInput
planPlanFilterInput
and[AttachmentFilterInput]
or[AttachmentFilterInput]

orderBy: AttachmentOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
PlanIdOrderBy
EntityIdOrderBy
EntityTypeIdOrderBy
EntityMainTypeOrderBy
AttachmentTypeOrderBy
CustomReferenceOrderBy
HasDisaggregatedDataOrderBy
UnitIdOrderBy
CalculationMethodOrderBy
DescriptionOrderBy
AttachmentPrototypeIdOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
AttachmentFact attachmentFacts

A planned numeric value, revision and optional dimensions for an attachment.

Root field: attachmentFacts · Object type: AttachmentFact · Result: AttachmentFactConnection!

FieldGraphQL typeKindNotes
IdInt!Value
AttachmentIdInt!Value
MetricTypeIdShort!ValueIdentifies what this numeric value represents; resolve through metricType.
LocationIdIntValueOptional disaggregation identifier. A null value does not imply a zero metric value.
GenderIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
AgeGroupIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
PopulationStatusIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
SettlementTypeIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
DisabilityStatusIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
HealthInterventionCategoryIdShortValue
MaternalStatusIdShortValue
DisaggregationCategoryOtherIdShortValue
DeliveryModalityIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
RevisionStateIdUnsignedByteValueVersion of the planned value. Supplied requirement rules use 1 Original and 2 Current.
SectorIdShortValueOptional sector identifier. It can be null on total rows; there is no sector relationship on this type.
IsTotalBoolean!ValueDistinguishes total rows from breakdown rows; true does not select a revision or metric by itself.
ValueNumDecimalValueNullable high-precision decimal value. Null is different from zero.
CustomMetricNameStringValue
DerivedMetricSourceStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
revisionStateRevisionStateSingle object relationshipSelect this object’s fields directly; do not add items.
deliveryModalityDeliveryModalitySingle object relationshipSelect this object’s fields directly; do not add items.
locationLocationSingle object relationshipSelect this object’s fields directly; do not add items.
metricTypeMetricTypeSingle object relationshipSelect this object’s fields directly; do not add items.
disaggregationCategoryOtherDisaggregationCategoryOtherSingle object relationshipSelect this object’s fields directly; do not add items.
healthInterventionCategoryHealthInterventionCategorySingle object relationshipSelect this object’s fields directly; do not add items.
maternalStatusMaternalStatusSingle object relationshipSelect this object’s fields directly; do not add items.
disabilityStatusDisabilityStatusSingle object relationshipSelect this object’s fields directly; do not add items.
settlementTypeSettlementTypeSingle object relationshipSelect this object’s fields directly; do not add items.
populationStatusPopulationStatusSingle object relationshipSelect this object’s fields directly; do not add items.
genderGenderSingle object relationshipSelect this object’s fields directly; do not add items.
ageGroupAgeGroupSingle object relationshipSelect this object’s fields directly; do not add items.
attachmentAttachmentSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: AttachmentFactFilterInput

Input fieldType
IdIntFilterInput
AttachmentIdIntFilterInput
MetricTypeIdShortFilterInput
LocationIdIntFilterInput
GenderIdShortFilterInput
AgeGroupIdShortFilterInput
PopulationStatusIdShortFilterInput
SettlementTypeIdShortFilterInput
DisabilityStatusIdShortFilterInput
HealthInterventionCategoryIdShortFilterInput
MaternalStatusIdShortFilterInput
DisaggregationCategoryOtherIdShortFilterInput
DeliveryModalityIdShortFilterInput
RevisionStateIdUnsignedByteFilterInput
SectorIdShortFilterInput
IsTotalBooleanFilterInput
ValueNumDecimalFilterInput
CustomMetricNameStringFilterInput
DerivedMetricSourceStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
revisionStateRevisionStateFilterInput
deliveryModalityDeliveryModalityFilterInput
locationLocationFilterInput
metricTypeMetricTypeFilterInput
disaggregationCategoryOtherDisaggregationCategoryOtherFilterInput
healthInterventionCategoryHealthInterventionCategoryFilterInput
maternalStatusMaternalStatusFilterInput
disabilityStatusDisabilityStatusFilterInput
settlementTypeSettlementTypeFilterInput
populationStatusPopulationStatusFilterInput
genderGenderFilterInput
ageGroupAgeGroupFilterInput
attachmentAttachmentFilterInput
and[AttachmentFactFilterInput]
or[AttachmentFactFilterInput]

orderBy: AttachmentFactOrderByInput

Input fieldType
IdOrderBy
AttachmentIdOrderBy
MetricTypeIdOrderBy
LocationIdOrderBy
GenderIdOrderBy
AgeGroupIdOrderBy
PopulationStatusIdOrderBy
SettlementTypeIdOrderBy
DisabilityStatusIdOrderBy
HealthInterventionCategoryIdOrderBy
MaternalStatusIdOrderBy
DisaggregationCategoryOtherIdOrderBy
DeliveryModalityIdOrderBy
RevisionStateIdOrderBy
SectorIdOrderBy
IsTotalOrderBy
ValueNumOrderBy
CustomMetricNameOrderBy
DerivedMetricSourceOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Measurement measurements

A reported observation for an attachment, with a link to its plan reporting period.

Root field: measurements · Object type: Measurement · Result: MeasurementConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameStringValue
PlanIdIntValue
AttachmentIdInt!Value
MeasurementPeriodIdIntValuePeriod identifier for the reported observation; use planReportingPeriod for its dates.
EntityIdIntValue
EntityTypeIdShortValue
EntityMainTypeStringValue
MeasurementTypeString!Value
CustomReferenceStringValue
UnitIdShortValue
CalculationMethodStringValue
DescriptionStringValue
AttachmentPrototypeIdIntValue
IsCommentPublicBoolean!Value
CommentsStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
attachmentPrototypeAttachmentPrototypeSingle object relationshipSelect this object’s fields directly; do not add items.
unitUnitSingle object relationshipSelect this object’s fields directly; do not add items.
entityTypeEntityTypeSingle object relationshipSelect this object’s fields directly; do not add items.
planReportingPeriodPlanReportingPeriodSingle object relationshipSelect this object’s fields directly; do not add items.
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentAttachmentSingle object relationshipSelect this object’s fields directly; do not add items.
planPlanSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: MeasurementFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
PlanIdIntFilterInput
AttachmentIdIntFilterInput
MeasurementPeriodIdIntFilterInput
EntityIdIntFilterInput
EntityTypeIdShortFilterInput
EntityMainTypeStringFilterInput
MeasurementTypeStringFilterInput
CustomReferenceStringFilterInput
UnitIdShortFilterInput
CalculationMethodStringFilterInput
DescriptionStringFilterInput
AttachmentPrototypeIdIntFilterInput
IsCommentPublicBooleanFilterInput
CommentsStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
attachmentPrototypeAttachmentPrototypeFilterInput
unitUnitFilterInput
entityTypeEntityTypeFilterInput
planReportingPeriodPlanReportingPeriodFilterInput
measurementFactMeasurementFactFilterInput
attachmentAttachmentFilterInput
planPlanFilterInput
and[MeasurementFilterInput]
or[MeasurementFilterInput]

orderBy: MeasurementOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
PlanIdOrderBy
AttachmentIdOrderBy
MeasurementPeriodIdOrderBy
EntityIdOrderBy
EntityTypeIdOrderBy
EntityMainTypeOrderBy
MeasurementTypeOrderBy
CustomReferenceOrderBy
UnitIdOrderBy
CalculationMethodOrderBy
DescriptionOrderBy
AttachmentPrototypeIdOrderBy
IsCommentPublicOrderBy
CommentsOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
MeasurementFact measurementFacts

A reported numeric value and optional dimensions for a measurement.

Root field: measurementFacts · Object type: MeasurementFact · Result: MeasurementFactConnection!

FieldGraphQL typeKindNotes
IdInt!Value
AttachmentIdInt!Value
MeasurementIdInt!Value
MetricTypeIdShort!ValueMeaning of the reported value.
LocationIdIntValueOptional disaggregation identifier. A null value does not imply a zero metric value.
GenderIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
AgeGroupIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
PopulationStatusIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
SettlementTypeIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
DisabilityStatusIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
HealthInterventionCategoryIdShortValue
MaternalStatusIdShortValue
DisaggregationCategoryOtherIdShortValue
DeliveryModalityIdShortValueOptional disaggregation identifier. A null value does not imply a zero metric value.
IsTotalBoolean!Value
ValueNumDecimalValueReported decimal value; interpret with its metric and period.
CustomMetricNameStringValue
DerivedMetricSourceStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
deliveryModalityDeliveryModalitySingle object relationshipSelect this object’s fields directly; do not add items.
locationLocationSingle object relationshipSelect this object’s fields directly; do not add items.
metricTypeMetricTypeSingle object relationshipSelect this object’s fields directly; do not add items.
disaggregationCategoryOtherDisaggregationCategoryOtherSingle object relationshipSelect this object’s fields directly; do not add items.
healthInterventionCategoryHealthInterventionCategorySingle object relationshipSelect this object’s fields directly; do not add items.
maternalStatusMaternalStatusSingle object relationshipSelect this object’s fields directly; do not add items.
disabilityStatusDisabilityStatusSingle object relationshipSelect this object’s fields directly; do not add items.
settlementTypeSettlementTypeSingle object relationshipSelect this object’s fields directly; do not add items.
populationStatusPopulationStatusSingle object relationshipSelect this object’s fields directly; do not add items.
genderGenderSingle object relationshipSelect this object’s fields directly; do not add items.
ageGroupAgeGroupSingle object relationshipSelect this object’s fields directly; do not add items.
measurementMeasurementSingle object relationshipSelect this object’s fields directly; do not add items.
attachmentAttachmentSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: MeasurementFactFilterInput

Input fieldType
IdIntFilterInput
AttachmentIdIntFilterInput
MeasurementIdIntFilterInput
MetricTypeIdShortFilterInput
LocationIdIntFilterInput
GenderIdShortFilterInput
AgeGroupIdShortFilterInput
PopulationStatusIdShortFilterInput
SettlementTypeIdShortFilterInput
DisabilityStatusIdShortFilterInput
HealthInterventionCategoryIdShortFilterInput
MaternalStatusIdShortFilterInput
DisaggregationCategoryOtherIdShortFilterInput
DeliveryModalityIdShortFilterInput
IsTotalBooleanFilterInput
ValueNumDecimalFilterInput
CustomMetricNameStringFilterInput
DerivedMetricSourceStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
deliveryModalityDeliveryModalityFilterInput
locationLocationFilterInput
metricTypeMetricTypeFilterInput
disaggregationCategoryOtherDisaggregationCategoryOtherFilterInput
healthInterventionCategoryHealthInterventionCategoryFilterInput
maternalStatusMaternalStatusFilterInput
disabilityStatusDisabilityStatusFilterInput
settlementTypeSettlementTypeFilterInput
populationStatusPopulationStatusFilterInput
genderGenderFilterInput
ageGroupAgeGroupFilterInput
measurementMeasurementFilterInput
attachmentAttachmentFilterInput
and[MeasurementFactFilterInput]
or[MeasurementFactFilterInput]

orderBy: MeasurementFactOrderByInput

Input fieldType
IdOrderBy
AttachmentIdOrderBy
MeasurementIdOrderBy
MetricTypeIdOrderBy
LocationIdOrderBy
GenderIdOrderBy
AgeGroupIdOrderBy
PopulationStatusIdOrderBy
SettlementTypeIdOrderBy
DisabilityStatusIdOrderBy
HealthInterventionCategoryIdOrderBy
MaternalStatusIdOrderBy
DisaggregationCategoryOtherIdOrderBy
DeliveryModalityIdOrderBy
IsTotalOrderBy
ValueNumOrderBy
CustomMetricNameOrderBy
DerivedMetricSourceOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
PlanReportingPeriod planReportingPeriods

A reporting period attached to a plan; measurements link here for dates and period number.

Root field: planReportingPeriods · Object type: PlanReportingPeriod · Result: PlanReportingPeriodConnection!

FieldGraphQL typeKindNotes
IdInt!Value
StartDateDateTimeValue
EndDateDateTimeValue
ExpiryDateDateTimeValue
PeriodNumberIntValue
PlanIdIntValue
MeasurementsGeneratedBoolean!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementMeasurementConnectionPaged relationshipSelect items and page information.
planPlanSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: PlanReportingPeriodFilterInput

Input fieldType
IdIntFilterInput
StartDateDateTimeFilterInput
EndDateDateTimeFilterInput
ExpiryDateDateTimeFilterInput
PeriodNumberIntFilterInput
PlanIdIntFilterInput
MeasurementsGeneratedBooleanFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementMeasurementFilterInput
planPlanFilterInput
and[PlanReportingPeriodFilterInput]
or[PlanReportingPeriodFilterInput]

orderBy: PlanReportingPeriodOrderByInput

Input fieldType
IdOrderBy
StartDateOrderBy
EndDateOrderBy
ExpiryDateOrderBy
PeriodNumberOrderBy
PlanIdOrderBy
MeasurementsGeneratedOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
MetricType metricTypes

Reference data that identifies the meaning of a fact’s MetricTypeId.

Root field: metricTypes · Object type: MetricType · Result: MetricTypeConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
NameFrStringValue
NameEsStringValue
LabelLookupStringValue
OtherNameStringValue
HPCTypeStringValue
MetricHPCCategoryStringValue
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: MetricTypeFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
NameFrStringFilterInput
NameEsStringFilterInput
LabelLookupStringFilterInput
OtherNameStringFilterInput
HPCTypeStringFilterInput
MetricHPCCategoryStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[MetricTypeFilterInput]
or[MetricTypeFilterInput]

orderBy: MetricTypeOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
NameFrOrderBy
NameEsOrderBy
LabelLookupOrderBy
OtherNameOrderBy
HPCTypeOrderBy
MetricHPCCategoryOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
RevisionState revisionStates

Reference data that explains RevisionStateId and its display name.

Root field: revisionStates · Object type: RevisionState · Result: RevisionStateConnection!

FieldGraphQL typeKindNotes
IdUnsignedByte!ValueUnsignedByte identifier, not Int.
NameString!Value
DisplayNameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: RevisionStateFilterInput

Input fieldType
IdUnsignedByteFilterInput
NameStringFilterInput
DisplayNameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
attachmentFactAttachmentFactFilterInput
and[RevisionStateFilterInput]
or[RevisionStateFilterInput]

orderBy: RevisionStateOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DisplayNameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Currency currencies

Currency identifier and code reference. The schema does not define a direct Currency relationship on AttachmentFact.

Root field: currencies · Object type: Currency · Result: CurrencyConnection!

FieldGraphQL typeKindNotes
IdShort!ValueShort identifier, not Int.
CodeString!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
currencyTranslationCurrencyTranslationConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: CurrencyFilterInput

Input fieldType
IdShortFilterInput
CodeStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
currencyTranslationCurrencyTranslationFilterInput
and[CurrencyFilterInput]
or[CurrencyFilterInput]

orderBy: CurrencyOrderByInput

Input fieldType
IdOrderBy
CodeOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Unit units

A metric unit linked from Attachment or Measurement. Check this context before combining numeric values.

Root field: units · Object type: Unit · Result: UnitConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
NameFrenchString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementMeasurementConnectionPaged relationshipSelect items and page information.
attachmentAttachmentConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: UnitFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
NameFrenchStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementMeasurementFilterInput
attachmentAttachmentFilterInput
and[UnitFilterInput]
or[UnitFilterInput]

orderBy: UnitOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
NameFrenchOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
PlanLocationRel planLocationRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: planLocationRels · Object type: PlanLocationRel · Result: PlanLocationRelConnection!

FieldGraphQL typeKindNotes
PlanIdInt!Value
LocationIdInt!Value
Filter and ordering inputs

filter: PlanLocationRelFilterInput

Input fieldType
PlanIdIntFilterInput
LocationIdIntFilterInput
and[PlanLocationRelFilterInput]
or[PlanLocationRelFilterInput]

orderBy: PlanLocationRelOrderByInput

Input fieldType
PlanIdOrderBy
LocationIdOrderBy
PlanEmergencyRel planEmergencyRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: planEmergencyRels · Object type: PlanEmergencyRel · Result: PlanEmergencyRelConnection!

FieldGraphQL typeKindNotes
PlanIdInt!Value
EmergencyIdShort!Value
Filter and ordering inputs

filter: PlanEmergencyRelFilterInput

Input fieldType
PlanIdIntFilterInput
EmergencyIdShortFilterInput
and[PlanEmergencyRelFilterInput]
or[PlanEmergencyRelFilterInput]

orderBy: PlanEmergencyRelOrderByInput

Input fieldType
PlanIdOrderBy
EmergencyIdOrderBy
PlanOrganizationRel planOrganizationRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: planOrganizationRels · Object type: PlanOrganizationRel · Result: PlanOrganizationRelConnection!

FieldGraphQL typeKindNotes
PlanIdInt!Value
OrganizationIdInt!Value
Filter and ordering inputs

filter: PlanOrganizationRelFilterInput

Input fieldType
PlanIdIntFilterInput
OrganizationIdIntFilterInput
and[PlanOrganizationRelFilterInput]
or[PlanOrganizationRelFilterInput]

orderBy: PlanOrganizationRelOrderByInput

Input fieldType
PlanIdOrderBy
OrganizationIdOrderBy
PlanCategoryRel planCategoryRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: planCategoryRels · Object type: PlanCategoryRel · Result: PlanCategoryRelConnection!

FieldGraphQL typeKindNotes
PlanIdInt!Value
CategoryIdInt!Value
Filter and ordering inputs

filter: PlanCategoryRelFilterInput

Input fieldType
PlanIdIntFilterInput
CategoryIdIntFilterInput
and[PlanCategoryRelFilterInput]
or[PlanCategoryRelFilterInput]

orderBy: PlanCategoryRelOrderByInput

Input fieldType
PlanIdOrderBy
CategoryIdOrderBy
ProjectLocationRel projectLocationRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectLocationRels · Object type: ProjectLocationRel · Result: ProjectLocationRelConnection!

FieldGraphQL typeKindNotes
ProjectIdInt!Value
LocationIdInt!Value
Filter and ordering inputs

filter: ProjectLocationRelFilterInput

Input fieldType
ProjectIdIntFilterInput
LocationIdIntFilterInput
and[ProjectLocationRelFilterInput]
or[ProjectLocationRelFilterInput]

orderBy: ProjectLocationRelOrderByInput

Input fieldType
ProjectIdOrderBy
LocationIdOrderBy
ProjectOrganizationRel projectOrganizationRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectOrganizationRels · Object type: ProjectOrganizationRel · Result: ProjectOrganizationRelConnection!

FieldGraphQL typeKindNotes
ProjectIdInt!Value
OrganizationIdInt!Value
Filter and ordering inputs

filter: ProjectOrganizationRelFilterInput

Input fieldType
ProjectIdIntFilterInput
OrganizationIdIntFilterInput
and[ProjectOrganizationRelFilterInput]
or[ProjectOrganizationRelFilterInput]

orderBy: ProjectOrganizationRelOrderByInput

Input fieldType
ProjectIdOrderBy
OrganizationIdOrderBy
ProjectSectorRel projectSectorRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectSectorRels · Object type: ProjectSectorRel · Result: ProjectSectorRelConnection!

FieldGraphQL typeKindNotes
ProjectIdInt!Value
SectorIdShort!Value
Filter and ordering inputs

filter: ProjectSectorRelFilterInput

Input fieldType
ProjectIdIntFilterInput
SectorIdShortFilterInput
and[ProjectSectorRelFilterInput]
or[ProjectSectorRelFilterInput]

orderBy: ProjectSectorRelOrderByInput

Input fieldType
ProjectIdOrderBy
SectorIdOrderBy
ProjectContactRel projectContactRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectContactRels · Object type: ProjectContactRel · Result: ProjectContactRelConnection!

FieldGraphQL typeKindNotes
ProjectIdInt!Value
ContactIdInt!Value
Filter and ordering inputs

filter: ProjectContactRelFilterInput

Input fieldType
ProjectIdIntFilterInput
ContactIdIntFilterInput
and[ProjectContactRelFilterInput]
or[ProjectContactRelFilterInput]

orderBy: ProjectContactRelOrderByInput

Input fieldType
ProjectIdOrderBy
ContactIdOrderBy
ProjectCreatedByRel projectCreatedByRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectCreatedByRels · Object type: ProjectCreatedByRel · Result: ProjectCreatedByRelConnection!

FieldGraphQL typeKindNotes
ProjectIdInt!Value
UserAccountIdInt!Value
Filter and ordering inputs

filter: ProjectCreatedByRelFilterInput

Input fieldType
ProjectIdIntFilterInput
UserAccountIdIntFilterInput
and[ProjectCreatedByRelFilterInput]
or[ProjectCreatedByRelFilterInput]

orderBy: ProjectCreatedByRelOrderByInput

Input fieldType
ProjectIdOrderBy
UserAccountIdOrderBy
OrganizationLocationRel organizationLocationRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: organizationLocationRels · Object type: OrganizationLocationRel · Result: OrganizationLocationRelConnection!

FieldGraphQL typeKindNotes
OrganizationIdInt!Value
LocationIdInt!Value
Filter and ordering inputs

filter: OrganizationLocationRelFilterInput

Input fieldType
OrganizationIdIntFilterInput
LocationIdIntFilterInput
and[OrganizationLocationRelFilterInput]
or[OrganizationLocationRelFilterInput]

orderBy: OrganizationLocationRelOrderByInput

Input fieldType
OrganizationIdOrderBy
LocationIdOrderBy
AgeGroupTranslation ageGroupTranslations

Schema-defined collection. Use the fields and input types below to build a query.

Root field: ageGroupTranslations · Object type: AgeGroupTranslation · Result: AgeGroupTranslationConnection!

FieldGraphQL typeKindNotes
AgeGroupIdShort!Value
LanguageCodeString!Value
NameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
Filter and ordering inputs

filter: AgeGroupTranslationFilterInput

Input fieldType
AgeGroupIdShortFilterInput
LanguageCodeStringFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
and[AgeGroupTranslationFilterInput]
or[AgeGroupTranslationFilterInput]

orderBy: AgeGroupTranslationOrderByInput

Input fieldType
AgeGroupIdOrderBy
LanguageCodeOrderBy
NameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
OrganizationCategoryRel organizationCategoryRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: organizationCategoryRels · Object type: OrganizationCategoryRel · Result: OrganizationCategoryRelConnection!

FieldGraphQL typeKindNotes
OrganizationIdInt!Value
CategoryIdInt!Value
Filter and ordering inputs

filter: OrganizationCategoryRelFilterInput

Input fieldType
OrganizationIdIntFilterInput
CategoryIdIntFilterInput
and[OrganizationCategoryRelFilterInput]
or[OrganizationCategoryRelFilterInput]

orderBy: OrganizationCategoryRelOrderByInput

Input fieldType
OrganizationIdOrderBy
CategoryIdOrderBy
EmergencyLocationRel emergencyLocationRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: emergencyLocationRels · Object type: EmergencyLocationRel · Result: EmergencyLocationRelConnection!

FieldGraphQL typeKindNotes
EmergencyIdShort!Value
LocationIdInt!Value
Filter and ordering inputs

filter: EmergencyLocationRelFilterInput

Input fieldType
EmergencyIdShortFilterInput
LocationIdIntFilterInput
and[EmergencyLocationRelFilterInput]
or[EmergencyLocationRelFilterInput]

orderBy: EmergencyLocationRelOrderByInput

Input fieldType
EmergencyIdOrderBy
LocationIdOrderBy
ProjectBudgetCoordinationEntityRel projectBudgetCoordinationEntityRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectBudgetCoordinationEntityRels · Object type: ProjectBudgetCoordinationEntityRel · Result: ProjectBudgetCoordinationEntityRelConnection!

FieldGraphQL typeKindNotes
ProjectBudgetIdInt!Value
CoordinationEntityIdInt!Value
Filter and ordering inputs

filter: ProjectBudgetCoordinationEntityRelFilterInput

Input fieldType
ProjectBudgetIdIntFilterInput
CoordinationEntityIdIntFilterInput
and[ProjectBudgetCoordinationEntityRelFilterInput]
or[ProjectBudgetCoordinationEntityRelFilterInput]

orderBy: ProjectBudgetCoordinationEntityRelOrderByInput

Input fieldType
ProjectBudgetIdOrderBy
CoordinationEntityIdOrderBy
ProjectLogframeRel projectLogframeRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectLogframeRels · Object type: ProjectLogframeRel · Result: ProjectLogframeRelConnection!

FieldGraphQL typeKindNotes
ProjectIdInt!Value
LogframeEntityIdInt!Value
Filter and ordering inputs

filter: ProjectLogframeRelFilterInput

Input fieldType
ProjectIdIntFilterInput
LogframeEntityIdIntFilterInput
and[ProjectLogframeRelFilterInput]
or[ProjectLogframeRelFilterInput]

orderBy: ProjectLogframeRelOrderByInput

Input fieldType
ProjectIdOrderBy
LogframeEntityIdOrderBy
CoordinationEntityLogframeRel coordinationEntityLogframeRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: coordinationEntityLogframeRels · Object type: CoordinationEntityLogframeRel · Result: CoordinationEntityLogframeRelConnection!

FieldGraphQL typeKindNotes
CoordinationEntityIdInt!Value
LogframeEntityIdInt!Value
Filter and ordering inputs

filter: CoordinationEntityLogframeRelFilterInput

Input fieldType
CoordinationEntityIdIntFilterInput
LogframeEntityIdIntFilterInput
and[CoordinationEntityLogframeRelFilterInput]
or[CoordinationEntityLogframeRelFilterInput]

orderBy: CoordinationEntityLogframeRelOrderByInput

Input fieldType
CoordinationEntityIdOrderBy
LogframeEntityIdOrderBy
ProjectBudgetSectorRel projectBudgetSectorRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectBudgetSectorRels · Object type: ProjectBudgetSectorRel · Result: ProjectBudgetSectorRelConnection!

FieldGraphQL typeKindNotes
ProjectBudgetIdInt!Value
SectorIdShort!Value
Filter and ordering inputs

filter: ProjectBudgetSectorRelFilterInput

Input fieldType
ProjectBudgetIdIntFilterInput
SectorIdShortFilterInput
and[ProjectBudgetSectorRelFilterInput]
or[ProjectBudgetSectorRelFilterInput]

orderBy: ProjectBudgetSectorRelOrderByInput

Input fieldType
ProjectBudgetIdOrderBy
SectorIdOrderBy
ProjectCoordinationEntityRel projectCoordinationEntityRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectCoordinationEntityRels · Object type: ProjectCoordinationEntityRel · Result: ProjectCoordinationEntityRelConnection!

FieldGraphQL typeKindNotes
ProjectIdInt!Value
CoordinationEntityIdInt!Value
Filter and ordering inputs

filter: ProjectCoordinationEntityRelFilterInput

Input fieldType
ProjectIdIntFilterInput
CoordinationEntityIdIntFilterInput
and[ProjectCoordinationEntityRelFilterInput]
or[ProjectCoordinationEntityRelFilterInput]

orderBy: ProjectCoordinationEntityRelOrderByInput

Input fieldType
ProjectIdOrderBy
CoordinationEntityIdOrderBy
SectorCoordinationEntityRel sectorCoordinationEntityRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: sectorCoordinationEntityRels · Object type: SectorCoordinationEntityRel · Result: SectorCoordinationEntityRelConnection!

FieldGraphQL typeKindNotes
SectorIdShort!Value
CoordinationEntityIdInt!Value
Filter and ordering inputs

filter: SectorCoordinationEntityRelFilterInput

Input fieldType
SectorIdShortFilterInput
CoordinationEntityIdIntFilterInput
and[SectorCoordinationEntityRelFilterInput]
or[SectorCoordinationEntityRelFilterInput]

orderBy: SectorCoordinationEntityRelOrderByInput

Input fieldType
SectorIdOrderBy
CoordinationEntityIdOrderBy
OrganizationParentChildRel organizationParentChildRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: organizationParentChildRels · Object type: OrganizationParentChildRel · Result: OrganizationParentChildRelConnection!

FieldGraphQL typeKindNotes
ParentOrganizationIdInt!Value
ChildOrganizationIdInt!Value
organizationOrganizationSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: OrganizationParentChildRelFilterInput

Input fieldType
ParentOrganizationIdIntFilterInput
ChildOrganizationIdIntFilterInput
organizationOrganizationFilterInput
and[OrganizationParentChildRelFilterInput]
or[OrganizationParentChildRelFilterInput]

orderBy: OrganizationParentChildRelOrderByInput

Input fieldType
ParentOrganizationIdOrderBy
ChildOrganizationIdOrderBy
ProjectBudgetOrganizationRel projectBudgetOrganizationRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectBudgetOrganizationRels · Object type: ProjectBudgetOrganizationRel · Result: ProjectBudgetOrganizationRelConnection!

FieldGraphQL typeKindNotes
ProjectBudgetIdInt!Value
OrganizationIdInt!Value
Filter and ordering inputs

filter: ProjectBudgetOrganizationRelFilterInput

Input fieldType
ProjectBudgetIdIntFilterInput
OrganizationIdIntFilterInput
and[ProjectBudgetOrganizationRelFilterInput]
or[ProjectBudgetOrganizationRelFilterInput]

orderBy: ProjectBudgetOrganizationRelOrderByInput

Input fieldType
ProjectBudgetIdOrderBy
OrganizationIdOrderBy
SectorParentChildRel sectorParentChildRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: sectorParentChildRels · Object type: SectorParentChildRel · Result: SectorParentChildRelConnection!

FieldGraphQL typeKindNotes
ParentSectorIdShort!Value
ChildSectorIdShort!Value
Filter and ordering inputs

filter: SectorParentChildRelFilterInput

Input fieldType
ParentSectorIdShortFilterInput
ChildSectorIdShortFilterInput
and[SectorParentChildRelFilterInput]
or[SectorParentChildRelFilterInput]

orderBy: SectorParentChildRelOrderByInput

Input fieldType
ParentSectorIdOrderBy
ChildSectorIdOrderBy
CoordinationEntityContactRel coordinationEntityContactRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: coordinationEntityContactRels · Object type: CoordinationEntityContactRel · Result: CoordinationEntityContactRelConnection!

FieldGraphQL typeKindNotes
CoordinationEntityIdInt!Value
ContactIdInt!Value
Filter and ordering inputs

filter: CoordinationEntityContactRelFilterInput

Input fieldType
CoordinationEntityIdIntFilterInput
ContactIdIntFilterInput
and[CoordinationEntityContactRelFilterInput]
or[CoordinationEntityContactRelFilterInput]

orderBy: CoordinationEntityContactRelOrderByInput

Input fieldType
CoordinationEntityIdOrderBy
ContactIdOrderBy
PlanTextContentRel planTextContentRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: planTextContentRels · Object type: PlanTextContentRel · Result: PlanTextContentRelConnection!

FieldGraphQL typeKindNotes
PlanIdInt!Value
TextContentIdInt!Value
Filter and ordering inputs

filter: PlanTextContentRelFilterInput

Input fieldType
PlanIdIntFilterInput
TextContentIdIntFilterInput
and[PlanTextContentRelFilterInput]
or[PlanTextContentRelFilterInput]

orderBy: PlanTextContentRelOrderByInput

Input fieldType
PlanIdOrderBy
TextContentIdOrderBy
CoordinationEntityTextContentRel coordinationEntityTextContentRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: coordinationEntityTextContentRels · Object type: CoordinationEntityTextContentRel · Result: CoordinationEntityTextContentRelConnection!

FieldGraphQL typeKindNotes
CoordinationEntityIdInt!Value
TextContentIdInt!Value
Filter and ordering inputs

filter: CoordinationEntityTextContentRelFilterInput

Input fieldType
CoordinationEntityIdIntFilterInput
TextContentIdIntFilterInput
and[CoordinationEntityTextContentRelFilterInput]
or[CoordinationEntityTextContentRelFilterInput]

orderBy: CoordinationEntityTextContentRelOrderByInput

Input fieldType
CoordinationEntityIdOrderBy
TextContentIdOrderBy
LogframeEntitySupportRel logframeEntitySupportRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: logframeEntitySupportRels · Object type: LogframeEntitySupportRel · Result: LogframeEntitySupportRelConnection!

FieldGraphQL typeKindNotes
LogframeEntityIdInt!Value
SupportsLogframeEntityIdInt!Value
SortOrderIntValue
logframeEntityLogframeEntitySingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: LogframeEntitySupportRelFilterInput

Input fieldType
LogframeEntityIdIntFilterInput
SupportsLogframeEntityIdIntFilterInput
SortOrderIntFilterInput
logframeEntityLogframeEntityFilterInput
and[LogframeEntitySupportRelFilterInput]
or[LogframeEntitySupportRelFilterInput]

orderBy: LogframeEntitySupportRelOrderByInput

Input fieldType
LogframeEntityIdOrderBy
SupportsLogframeEntityIdOrderBy
SortOrderOrderBy
CoordinationEntityFileAssetRel coordinationEntityFileAssetRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: coordinationEntityFileAssetRels · Object type: CoordinationEntityFileAssetRel · Result: CoordinationEntityFileAssetRelConnection!

FieldGraphQL typeKindNotes
CoordinationEntityIdInt!Value
FileAssetIdInt!Value
Filter and ordering inputs

filter: CoordinationEntityFileAssetRelFilterInput

Input fieldType
CoordinationEntityIdIntFilterInput
FileAssetIdIntFilterInput
and[CoordinationEntityFileAssetRelFilterInput]
or[CoordinationEntityFileAssetRelFilterInput]

orderBy: CoordinationEntityFileAssetRelOrderByInput

Input fieldType
CoordinationEntityIdOrderBy
FileAssetIdOrderBy
PlanFileAssetRel planFileAssetRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: planFileAssetRels · Object type: PlanFileAssetRel · Result: PlanFileAssetRelConnection!

FieldGraphQL typeKindNotes
PlanIdInt!Value
FileAssetIdInt!Value
Filter and ordering inputs

filter: PlanFileAssetRelFilterInput

Input fieldType
PlanIdIntFilterInput
FileAssetIdIntFilterInput
and[PlanFileAssetRelFilterInput]
or[PlanFileAssetRelFilterInput]

orderBy: PlanFileAssetRelOrderByInput

Input fieldType
PlanIdOrderBy
FileAssetIdOrderBy
VisibilityGroup visibilityGroups

Schema-defined collection. Use the fields and input types below to build a query.

Root field: visibilityGroups · Object type: VisibilityGroup · Result: VisibilityGroupConnection!

FieldGraphQL typeKindNotes
IdUnsignedByte!Value
NameString!Value
DisplayNameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
Filter and ordering inputs

filter: VisibilityGroupFilterInput

Input fieldType
IdUnsignedByteFilterInput
NameStringFilterInput
DisplayNameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
and[VisibilityGroupFilterInput]
or[VisibilityGroupFilterInput]

orderBy: VisibilityGroupOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DisplayNameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
EntityType entityTypes

Schema-defined collection. Use the fields and input types below to build a query.

Root field: entityTypes · Object type: EntityType · Result: EntityTypeConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DisplayNameString!Value
EntitySubTypeStringValue
PgSqlEntityTypeStringValue
PgSqlRefCodeStringValue
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
logframeEntityLogframeEntityConnectionPaged relationshipSelect items and page information.
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
commentCommentConnectionPaged relationshipSelect items and page information.
measurementMeasurementConnectionPaged relationshipSelect items and page information.
attachmentAttachmentConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: EntityTypeFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DisplayNameStringFilterInput
EntitySubTypeStringFilterInput
PgSqlEntityTypeStringFilterInput
PgSqlRefCodeStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
logframeEntityLogframeEntityFilterInput
coordinationEntityCoordinationEntityFilterInput
commentCommentFilterInput
measurementMeasurementFilterInput
attachmentAttachmentFilterInput
and[EntityTypeFilterInput]
or[EntityTypeFilterInput]

orderBy: EntityTypeOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DisplayNameOrderBy
EntitySubTypeOrderBy
PgSqlEntityTypeOrderBy
PgSqlRefCodeOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
CategoryType categoryTypes

Schema-defined collection. Use the fields and input types below to build a query.

Root field: categoryTypes · Object type: CategoryType · Result: CategoryTypeConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DisplayNameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
categoryCategoryConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: CategoryTypeFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DisplayNameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
categoryCategoryFilterInput
and[CategoryTypeFilterInput]
or[CategoryTypeFilterInput]

orderBy: CategoryTypeOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DisplayNameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Category categories

Schema-defined collection. Use the fields and input types below to build a query.

Root field: categories · Object type: Category · Result: CategoryConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameString!Value
CategoryTypeIdShort!Value
DescriptionStringValue
ParentIdIntValue
CodeStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
organizationOrganizationConnectionPaged relationshipSelect items and page information.
categoryTypeCategoryTypeSingle object relationshipSelect this object’s fields directly; do not add items.
planPlanConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: CategoryFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
CategoryTypeIdShortFilterInput
DescriptionStringFilterInput
ParentIdIntFilterInput
CodeStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
organizationOrganizationFilterInput
categoryTypeCategoryTypeFilterInput
planPlanFilterInput
and[CategoryFilterInput]
or[CategoryFilterInput]

orderBy: CategoryOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
CategoryTypeIdOrderBy
DescriptionOrderBy
ParentIdOrderBy
CodeOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
AgeGroup ageGroups

Schema-defined collection. Use the fields and input types below to build a query.

Root field: ageGroups · Object type: AgeGroup · Result: AgeGroupConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
ReferenceCodeStringValue
ageGroupTranslationAgeGroupTranslationConnectionPaged relationshipSelect items and page information.
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: AgeGroupFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
ReferenceCodeStringFilterInput
ageGroupTranslationAgeGroupTranslationFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[AgeGroupFilterInput]
or[AgeGroupFilterInput]

orderBy: AgeGroupOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
ReferenceCodeOrderBy
Gender genders

Schema-defined collection. Use the fields and input types below to build a query.

Root field: genders · Object type: Gender · Result: GenderConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
ShortNameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: GenderFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
ShortNameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[GenderFilterInput]
or[GenderFilterInput]

orderBy: GenderOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
ShortNameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
PopulationStatus populationStatuses

Schema-defined collection. Use the fields and input types below to build a query.

Root field: populationStatuses · Object type: PopulationStatus · Result: PopulationStatusConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
ShortNameStringValue
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: PopulationStatusFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
ShortNameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[PopulationStatusFilterInput]
or[PopulationStatusFilterInput]

orderBy: PopulationStatusOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
ShortNameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
SettlementType settlementTypes

Schema-defined collection. Use the fields and input types below to build a query.

Root field: settlementTypes · Object type: SettlementType · Result: SettlementTypeConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: SettlementTypeFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[SettlementTypeFilterInput]
or[SettlementTypeFilterInput]

orderBy: SettlementTypeOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
DisabilityStatus disabilityStatuses

Schema-defined collection. Use the fields and input types below to build a query.

Root field: disabilityStatuses · Object type: DisabilityStatus · Result: DisabilityStatusConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DescriptionStringValue
KindStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: DisabilityStatusFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DescriptionStringFilterInput
KindStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[DisabilityStatusFilterInput]
or[DisabilityStatusFilterInput]

orderBy: DisabilityStatusOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DescriptionOrderBy
KindOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
MaternalStatus maternalStatuses

Schema-defined collection. Use the fields and input types below to build a query.

Root field: maternalStatuses · Object type: MaternalStatus · Result: MaternalStatusConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: MaternalStatusFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[MaternalStatusFilterInput]
or[MaternalStatusFilterInput]

orderBy: MaternalStatusOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
HealthInterventionCategory healthInterventionCategories

Schema-defined collection. Use the fields and input types below to build a query.

Root field: healthInterventionCategories · Object type: HealthInterventionCategory · Result: HealthInterventionCategoryConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: HealthInterventionCategoryFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[HealthInterventionCategoryFilterInput]
or[HealthInterventionCategoryFilterInput]

orderBy: HealthInterventionCategoryOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
DisaggregationCategoryOther disaggregationCategoryOthers

Schema-defined collection. Use the fields and input types below to build a query.

Root field: disaggregationCategoryOthers · Object type: DisaggregationCategoryOther · Result: DisaggregationCategoryOtherConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: DisaggregationCategoryOtherFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[DisaggregationCategoryOtherFilterInput]
or[DisaggregationCategoryOtherFilterInput]

orderBy: DisaggregationCategoryOtherOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
DeliveryModality deliveryModalities

Schema-defined collection. Use the fields and input types below to build a query.

Root field: deliveryModalities · Object type: DeliveryModality · Result: DeliveryModalityConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementFactMeasurementFactConnectionPaged relationshipSelect items and page information.
attachmentFactAttachmentFactConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: DeliveryModalityFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementFactMeasurementFactFilterInput
attachmentFactAttachmentFactFilterInput
and[DeliveryModalityFilterInput]
or[DeliveryModalityFilterInput]

orderBy: DeliveryModalityOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Icon icons

Schema-defined collection. Use the fields and input types below to build a query.

Root field: icons · Object type: Icon · Result: IconConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
FullNameString!Value
SvgString!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: IconFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
FullNameStringFilterInput
SvgStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
coordinationEntityCoordinationEntityFilterInput
and[IconFilterInput]
or[IconFilterInput]

orderBy: IconOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
FullNameOrderBy
SvgOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
UserAccount userAccounts

Schema-defined collection. Use the fields and input types below to build a query.

Root field: userAccounts · Object type: UserAccount · Result: UserAccountConnection!

FieldGraphQL typeKindNotes
IdInt!Value
EmailStringValue
NameString!Value
IsActiveBoolean!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
projectProjectConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: UserAccountFilterInput

Input fieldType
IdIntFilterInput
EmailStringFilterInput
NameStringFilterInput
IsActiveBooleanFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
projectProjectFilterInput
and[UserAccountFilterInput]
or[UserAccountFilterInput]

orderBy: UserAccountOrderByInput

Input fieldType
IdOrderBy
EmailOrderBy
NameOrderBy
IsActiveOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Comment comments

Schema-defined collection. Use the fields and input types below to build a query.

Root field: comments · Object type: Comment · Result: CommentConnection!

FieldGraphQL typeKindNotes
IdInt!Value
EntityTypeIdShort!Value
EntityIdInt!Value
UserAccountIdInt!Value
CommentTextString!Value
StepStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
Filter and ordering inputs

filter: CommentFilterInput

Input fieldType
IdIntFilterInput
EntityTypeIdShortFilterInput
EntityIdIntFilterInput
UserAccountIdIntFilterInput
CommentTextStringFilterInput
StepStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
and[CommentFilterInput]
or[CommentFilterInput]

orderBy: CommentOrderByInput

Input fieldType
IdOrderBy
EntityTypeIdOrderBy
EntityIdOrderBy
UserAccountIdOrderBy
CommentTextOrderBy
StepOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
AttachmentPrototype attachmentPrototypes

Schema-defined collection. Use the fields and input types below to build a query.

Root field: attachmentPrototypes · Object type: AttachmentPrototype · Result: AttachmentPrototypeConnection!

FieldGraphQL typeKindNotes
IdInt!Value
RefCodeString!Value
TypeString!Value
ValueString!Value
Value2String!Value
PlanIdInt!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
measurementMeasurementConnectionPaged relationshipSelect items and page information.
attachmentAttachmentConnectionPaged relationshipSelect items and page information.
planPlanSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: AttachmentPrototypeFilterInput

Input fieldType
IdIntFilterInput
RefCodeStringFilterInput
TypeStringFilterInput
ValueStringFilterInput
Value2StringFilterInput
PlanIdIntFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
measurementMeasurementFilterInput
attachmentAttachmentFilterInput
planPlanFilterInput
and[AttachmentPrototypeFilterInput]
or[AttachmentPrototypeFilterInput]

orderBy: AttachmentPrototypeOrderByInput

Input fieldType
IdOrderBy
RefCodeOrderBy
TypeOrderBy
ValueOrderBy
Value2OrderBy
PlanIdOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
EntityPrototype entityPrototypes

Schema-defined collection. Use the fields and input types below to build a query.

Root field: entityPrototypes · Object type: EntityPrototype · Result: EntityPrototypeConnection!

FieldGraphQL typeKindNotes
IdInt!Value
RefCodeString!Value
TypeString!Value
PlanIdInt!Value
OrderNumberIntValue
ValueString!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
planPlanSingle object relationshipSelect this object’s fields directly; do not add items.
Filter and ordering inputs

filter: EntityPrototypeFilterInput

Input fieldType
IdIntFilterInput
RefCodeStringFilterInput
TypeStringFilterInput
PlanIdIntFilterInput
OrderNumberIntFilterInput
ValueStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
planPlanFilterInput
and[EntityPrototypeFilterInput]
or[EntityPrototypeFilterInput]

orderBy: EntityPrototypeOrderByInput

Input fieldType
IdOrderBy
RefCodeOrderBy
TypeOrderBy
PlanIdOrderBy
OrderNumberOrderBy
ValueOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
Contact contacts

Schema-defined collection. Use the fields and input types below to build a query.

Root field: contacts · Object type: Contact · Result: ContactConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameString!Value
EmailStringValue
PhoneStringValue
WebsiteStringValue
AddressStringValue
DepartmentStringValue
JobTitleStringValue
RoleStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
projectProjectConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: ContactFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
EmailStringFilterInput
PhoneStringFilterInput
WebsiteStringFilterInput
AddressStringFilterInput
DepartmentStringFilterInput
JobTitleStringFilterInput
RoleStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
coordinationEntityCoordinationEntityFilterInput
projectProjectFilterInput
and[ContactFilterInput]
or[ContactFilterInput]

orderBy: ContactOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
EmailOrderBy
PhoneOrderBy
WebsiteOrderBy
AddressOrderBy
DepartmentOrderBy
JobTitleOrderBy
RoleOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
CustomQuestionOption customQuestionOptions

Schema-defined collection. Use the fields and input types below to build a query.

Root field: customQuestionOptions · Object type: CustomQuestionOption · Result: CustomQuestionOptionConnection!

FieldGraphQL typeKindNotes
IdInt!Value
CustomQuestionIdInt!Value
OptionCodeStringValue
OptionValueString!Value
OptionLabelStringValue
OptionJsonStringValue
SortOrderInt!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
Filter and ordering inputs

filter: CustomQuestionOptionFilterInput

Input fieldType
IdIntFilterInput
CustomQuestionIdIntFilterInput
OptionCodeStringFilterInput
OptionValueStringFilterInput
OptionLabelStringFilterInput
OptionJsonStringFilterInput
SortOrderIntFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
and[CustomQuestionOptionFilterInput]
or[CustomQuestionOptionFilterInput]

orderBy: CustomQuestionOptionOrderByInput

Input fieldType
IdOrderBy
CustomQuestionIdOrderBy
OptionCodeOrderBy
OptionValueOrderBy
OptionLabelOrderBy
OptionJsonOrderBy
SortOrderOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
ProjectAttachmentTarget projectAttachmentTargets

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectAttachmentTargets · Object type: ProjectAttachmentTarget · Result: ProjectAttachmentTargetConnection!

FieldGraphQL typeKindNotes
IdInt!Value
ProjectIdInt!Value
AttachmentIdInt!Value
ValueNumDecimalValue
VisibilityGroupIdUnsignedByte!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
Filter and ordering inputs

filter: ProjectAttachmentTargetFilterInput

Input fieldType
IdIntFilterInput
ProjectIdIntFilterInput
AttachmentIdIntFilterInput
ValueNumDecimalFilterInput
VisibilityGroupIdUnsignedByteFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
and[ProjectAttachmentTargetFilterInput]
or[ProjectAttachmentTargetFilterInput]

orderBy: ProjectAttachmentTargetOrderByInput

Input fieldType
IdOrderBy
ProjectIdOrderBy
AttachmentIdOrderBy
ValueNumOrderBy
VisibilityGroupIdOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
FileAssetType fileAssetTypes

Schema-defined collection. Use the fields and input types below to build a query.

Root field: fileAssetTypes · Object type: FileAssetType · Result: FileAssetTypeConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DisplayNameStringValue
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
fileAssetFileAssetConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: FileAssetTypeFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DisplayNameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
fileAssetFileAssetFilterInput
and[FileAssetTypeFilterInput]
or[FileAssetTypeFilterInput]

orderBy: FileAssetTypeOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DisplayNameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
FileAsset fileAssets

Schema-defined collection. Use the fields and input types below to build a query.

Root field: fileAssets · Object type: FileAsset · Result: FileAssetConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameString!Value
OriginalNameStringValue
MimeTypeStringValue
CreditStringValue
VisibilityGroupIdUnsignedByte!Value
FileAssetTypeIdShort!Value
FilePathStringValue
urlString!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
AzureFileURLStringValue
fileAssetTypeFileAssetTypeSingle object relationshipSelect this object’s fields directly; do not add items.
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
planPlanConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: FileAssetFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
OriginalNameStringFilterInput
MimeTypeStringFilterInput
CreditStringFilterInput
VisibilityGroupIdUnsignedByteFilterInput
FileAssetTypeIdShortFilterInput
FilePathStringFilterInput
urlStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
AzureFileURLStringFilterInput
fileAssetTypeFileAssetTypeFilterInput
coordinationEntityCoordinationEntityFilterInput
planPlanFilterInput
and[FileAssetFilterInput]
or[FileAssetFilterInput]

orderBy: FileAssetOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
OriginalNameOrderBy
MimeTypeOrderBy
CreditOrderBy
VisibilityGroupIdOrderBy
FileAssetTypeIdOrderBy
FilePathOrderBy
urlOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
AzureFileURLOrderBy
TextContentType textContentTypes

Schema-defined collection. Use the fields and input types below to build a query.

Root field: textContentTypes · Object type: TextContentType · Result: TextContentTypeConnection!

FieldGraphQL typeKindNotes
IdShort!Value
NameString!Value
DisplayNameStringValue
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
textContentTextContentConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: TextContentTypeFilterInput

Input fieldType
IdShortFilterInput
NameStringFilterInput
DisplayNameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
textContentTextContentFilterInput
and[TextContentTypeFilterInput]
or[TextContentTypeFilterInput]

orderBy: TextContentTypeOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
DisplayNameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
TextContent textContents

Schema-defined collection. Use the fields and input types below to build a query.

Root field: textContents · Object type: TextContent · Result: TextContentConnection!

FieldGraphQL typeKindNotes
IdInt!Value
NameString!Value
TitleStringValue
DescriptionStringValue
ContentHtmlString!Value
ContentPlainTextStringValue
AsOfDateDateTimeValue
VisibilityGroupIdUnsignedByte!Value
TextContentTypeIdShort!Value
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
textContentTypeTextContentTypeSingle object relationshipSelect this object’s fields directly; do not add items.
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
planPlanConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: TextContentFilterInput

Input fieldType
IdIntFilterInput
NameStringFilterInput
TitleStringFilterInput
DescriptionStringFilterInput
ContentHtmlStringFilterInput
ContentPlainTextStringFilterInput
AsOfDateDateTimeFilterInput
VisibilityGroupIdUnsignedByteFilterInput
TextContentTypeIdShortFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
textContentTypeTextContentTypeFilterInput
coordinationEntityCoordinationEntityFilterInput
planPlanFilterInput
and[TextContentFilterInput]
or[TextContentFilterInput]

orderBy: TextContentOrderByInput

Input fieldType
IdOrderBy
NameOrderBy
TitleOrderBy
DescriptionOrderBy
ContentHtmlOrderBy
ContentPlainTextOrderBy
AsOfDateOrderBy
VisibilityGroupIdOrderBy
TextContentTypeIdOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
ProjectBudget projectBudgets

Schema-defined collection. Use the fields and input types below to build a query.

Root field: projectBudgets · Object type: ProjectBudget · Result: ProjectBudgetConnection!

FieldGraphQL typeKindNotes
IdInt!Value
ProjectIdInt!Value
BudgetSegmentNameStringValue
BudgetLineItemNameStringValue
BudgetBreakdownTypeStringValue
AmountDecimalValue
PercentValueDecimalValue
ContentJsonStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
coordinationEntityCoordinationEntityConnectionPaged relationshipSelect items and page information.
organizationOrganizationConnectionPaged relationshipSelect items and page information.
sectorSectorConnectionPaged relationshipSelect items and page information.
Filter and ordering inputs

filter: ProjectBudgetFilterInput

Input fieldType
IdIntFilterInput
ProjectIdIntFilterInput
BudgetSegmentNameStringFilterInput
BudgetLineItemNameStringFilterInput
BudgetBreakdownTypeStringFilterInput
AmountDecimalFilterInput
PercentValueDecimalFilterInput
ContentJsonStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
coordinationEntityCoordinationEntityFilterInput
organizationOrganizationFilterInput
sectorSectorFilterInput
and[ProjectBudgetFilterInput]
or[ProjectBudgetFilterInput]

orderBy: ProjectBudgetOrderByInput

Input fieldType
IdOrderBy
ProjectIdOrderBy
BudgetSegmentNameOrderBy
BudgetLineItemNameOrderBy
BudgetBreakdownTypeOrderBy
AmountOrderBy
PercentValueOrderBy
ContentJsonOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
PlanPeriodRel planPeriodRels

Schema-defined collection. Use the fields and input types below to build a query.

Root field: planPeriodRels · Object type: PlanPeriodRel · Result: PlanPeriodRelConnection!

FieldGraphQL typeKindNotes
PlanIdInt!Value
PeriodIdInt!Value
Filter and ordering inputs

filter: PlanPeriodRelFilterInput

Input fieldType
PlanIdIntFilterInput
PeriodIdIntFilterInput
and[PlanPeriodRelFilterInput]
or[PlanPeriodRelFilterInput]

orderBy: PlanPeriodRelOrderByInput

Input fieldType
PlanIdOrderBy
PeriodIdOrderBy
Language languages

Schema-defined collection. Use the fields and input types below to build a query.

Root field: languages · Object type: Language · Result: LanguageConnection!

FieldGraphQL typeKindNotes
CodeString!Value
NameString!Value
NativeNameStringValue
IsRtlBoolean!Value
SortOrderIntValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
Filter and ordering inputs

filter: LanguageFilterInput

Input fieldType
CodeStringFilterInput
NameStringFilterInput
NativeNameStringFilterInput
IsRtlBooleanFilterInput
SortOrderIntFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
and[LanguageFilterInput]
or[LanguageFilterInput]

orderBy: LanguageOrderByInput

Input fieldType
CodeOrderBy
NameOrderBy
NativeNameOrderBy
IsRtlOrderBy
SortOrderOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy
CurrencyTranslation currencyTranslations

Schema-defined collection. Use the fields and input types below to build a query.

Root field: currencyTranslations · Object type: CurrencyTranslation · Result: CurrencyTranslationConnection!

FieldGraphQL typeKindNotes
CurrencyIdShort!Value
LanguageCodeString!Value
NameString!Value
DescriptionStringValue
CreatedAtDateTimeValue
UpdatedAtDateTimeValue
Filter and ordering inputs

filter: CurrencyTranslationFilterInput

Input fieldType
CurrencyIdShortFilterInput
LanguageCodeStringFilterInput
NameStringFilterInput
DescriptionStringFilterInput
CreatedAtDateTimeFilterInput
UpdatedAtDateTimeFilterInput
and[CurrencyTranslationFilterInput]
or[CurrencyTranslationFilterInput]

orderBy: CurrencyTranslationOrderByInput

Input fieldType
CurrencyIdOrderBy
LanguageCodeOrderBy
NameOrderBy
DescriptionOrderBy
CreatedAtOrderBy
UpdatedAtOrderBy

Structural contract and business meaning

The field names, types and relationship shapes above come from the schema. Business labels such as field cluster type 10, country level 0, and the original/current revision rule come from the supplied documentation. Where a field has no description in the schema, do not infer extra guarantees from its name.

AttachmentType, EntityMainType and RecordStatus are Strings in this export, not GraphQL enums. The example values are useful conventions, not a schema-enforced exhaustive value list.

Use reference collections such as entityTypes, metricTypes and revisionStates to resolve IDs. Ask the API team about business meaning that is not documented.

06

Requirements and results

Retrieve planned and reported values while keeping metric, revision, owner and reporting-period context.

Choose planned values or reported results

DataStart fromInterpret with
Planned values / requirementsattachmentFactsAttachment owner and type, MetricTypeId, revision, unit and dimensions
Reported values / resultsmeasurementFactsMetricTypeId, measurement and reporting period, unit and dimensions

The same ValueNum field can represent different metrics. A row is not a financial requirement merely because it contains a number. Keep the IDs and context that explain it.

Plan requirement rows

GraphQL query
query PlanRequirementRows($planId: Int!, $first: Int!, $after: String) {
  attachmentFacts(
    first: $first
    after: $after
    filter: {
      IsTotal: { eq: true }
      RevisionStateId: { in: [1, 2] }
      attachment: {
        PlanId: { eq: $planId }
        EntityMainType: { eq: "Plan" }
        AttachmentType: { eq: "Cost" }
      }
    }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      AttachmentId
      MetricTypeId
      RevisionStateId
      IsTotal
      ValueNum
      metricType { Id Name }
      attachment { Id Name PlanId EntityMainType AttachmentType UnitId }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}
FilterPurpose
IsTotal: { eq: true }Select total rows and exclude breakdown rows for this example.
RevisionStateId: { in: [1, 2] }Return original and current states used in the supplied requirement rule.
attachment.PlanId = $planIdSelect the plan context.
attachment.EntityMainType = "Plan"Require direct Plan ownership; exclude cluster or other owners.
attachment.AttachmentType = "Cost"Select Cost definitions rather than Caseload or Indicator definitions.

MetricTypeId and metricType.Name explain each returned value. Retain AttachmentId so different attachments do not become one unexplained total. Continue paging before deciding that a revision is absent.

Select original and current values

Available rows for the same attachment and metricOriginalCurrent
State 1 onlyState 1State 1 as fallback
States 1 and 2State 1State 2
State 2 onlyMissing; do not invent itState 2
Neither stateMissingMissing

This rule comes from the supplied documentation: state 1 is Original and state 2 is Current. If other states appear, resolve them through revisionStates before using them. The sample requirement query deliberately requests only 1 and 2.

Selection logic — run after collecting all pages
For each AttachmentId + MetricTypeId:
    original = the state 1 row, if present
    current  = the state 2 row, if present
    if the state 2 row is absent:
        current = original

Keep zero as zero.
Keep a null ValueNum as missing; do not replace it with zero.
Do not add the Original and Current revisions together.
If several rows remain for the same key and revision,
check their dimensions and metric context before combining them.

Apply fallback per attachment and metric, not once for the whole plan. Finding one state 2 row does not prove every attachment has a revised value. A state 2 row with ValueNum = 0 is a real current value; do not use a truthiness test to replace it.

Plan requirements by calendar year

GraphQL query
query RequirementRowsByYear($year: Int!, $first: Int!, $after: String) {
  attachmentFacts(
    first: $first
    after: $after
    filter: {
      IsTotal: { eq: true }
      RevisionStateId: { in: [1, 2] }
      attachment: {
        EntityMainType: { eq: "Plan" }
        AttachmentType: { eq: "Cost" }
        plan: { period: { CalendarYear: { eq: $year } } }
      }
    }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      AttachmentId
      MetricTypeId
      RevisionStateId
      ValueNum
      metricType { Id Name }
      attachment { Id Name PlanId UnitId plan { Id Name PlanCode } }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "year": 2026,
  "first": 20,
  "after": null
}

The relationship filter follows AttachmentFact.attachment → Attachment.plan → Plan.period. The year belongs to Period. This query returns matching cost facts; plans without those facts do not appear. Run Plans by year separately if your report must include all plans, including those with missing requirements.

Field-cluster costs

GraphQL query
query FieldClusterCostRows($planId: Int!, $first: Int!, $after: String) {
  attachmentFacts(
    first: $first
    after: $after
    filter: {
      IsTotal: { eq: true }
      RevisionStateId: { in: [1, 2] }
      attachment: {
        PlanId: { eq: $planId }
        EntityMainType: { eq: "CoordinationEntity" }
        AttachmentType: { eq: "Cost" }
        coordinationEntity: { EntityTypeId: { eq: 10 } }
      }
    }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      AttachmentId
      MetricTypeId
      RevisionStateId
      SectorId
      ValueNum
      metricType { Id Name }
      attachment {
        Id
        PlanId
        EntityId
        UnitId
        coordinationEntity { Id Name EntityTypeId }
      }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}

These rows belong to CoordinationEntity owners of type 10. The response contains the local cluster ID and name. Use Field clusters and their global sectors on the Sample Queries page to obtain the global sector mappings.

A cluster can map to several sectors. Repeating the full cluster total under each sector would double-count it. SectorId can also be null on total rows. Use explicit breakdown rows and an agreed attribution rule when building sector totals.

A plan total and its cluster totals can represent different aggregation levels. Do not add them together as if they were independent components. Likewise, do not add a total row to the breakdown rows it summarizes.

Reported results and periods

GraphQL query
query ReportedResults($attachmentId: Int!, $first: Int!, $after: String) {
  measurementFacts(
    first: $first
    after: $after
    filter: { AttachmentId: { eq: $attachmentId }, IsTotal: { eq: true } }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      AttachmentId
      MeasurementId
      MetricTypeId
      ValueNum
      metricType { Id Name }
      measurement {
        Id
        MeasurementPeriodId
        MeasurementType
        planReportingPeriod { Id PlanId PeriodNumber StartDate EndDate }
      }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "attachmentId": 123,
  "first": 20,
  "after": null
}

MeasurementFact.measurement is one object. Its planReportingPeriod gives the reporting period number and dates. Keep the period context when comparing results or identifying the observation your report needs.

This query returns all matching periods. It does not automatically calculate the latest result, a cumulative total or progress against a target. Agree those rules for your use case before summing observations over time.

Resolve reference IDs

GraphQL query
query ReferenceMeanings {
  metricTypes(first: 20, orderBy: { Id: ASC }) {
    items { Id Name Description }
    hasNextPage
    endCursor
  }
  revisionStates(first: 20, orderBy: { Id: ASC }) {
    items { Id Name DisplayName Description }
    hasNextPage
    endCursor
  }
}

Use these labels to explain values in your application. If a metric or unit remains unclear, contact the SPPB-Tools team with the AttachmentId and MetricTypeId. A null numeric value means missing data in that field, not zero.

07

Sample Queries

Copy simple GraphQL queries, change their fixed values or JSON variables, and inspect the returned data.

How to use these examples

Choose an example and copy its GraphQL query into the API test console. Where a Variables block is shown, copy it separately into Variables. Fixed-value queries need no variables; leave the box empty or use {}.

The example IDs are placeholders for syntax, not verified live records. Obtain a PlanId from a plan list, a ProjectId from projects, or an AttachmentId from an attachment or fact query, then replace the example value.

Start with 20 rows. To continue a paged query, set its after variable to the returned endCursor while hasNextPage is true. Nested connections have separate cursors.

Query catalogue

No matching query.

1. Currencies: first page

Start with a small reference query. This retrieves a page, not a guarantee of every currency.

GraphQL query
query Currencies {
  currencies(first: 10, orderBy: { Id: ASC }) {
    items { Id Code }
    hasNextPage
    endCursor
  }
}

No variables required. Use an empty Variables box or {}.

2. Currency by code: fixed value

Return the currency whose code equals USD.

GraphQL query
query CurrencyUSD {
  currencies(first: 1, filter: { Code: { eq: "USD" } }) {
    items { Id Code }
  }
}

No variables required. Use an empty Variables box or {}.

3. Currency by code: variable

Reuse the same query for USD, EUR, CHF or another code.

GraphQL query
query CurrencyByCode($code: String!) {
  currencies(first: 1, filter: { Code: { eq: $code } }) {
    items { Id Code }
  }
}
Variables
{
  "code": "USD"
}
4. Active countries

Return country-level locations. Both filter conditions must match.

GraphQL query
query ActiveCountries($first: Int!, $after: String) {
  locations(
    first: $first
    after: $after
    filter: { AdminLevel: { eq: 0 }, RecordStatus: { eq: "Active" } }
    orderBy: { Id: ASC }
  ) {
    items { Id Name ISO3 Pcode AdminLevel }
    hasNextPage
    endCursor
  }
}
Variables
{
  "first": 20,
  "after": null
}

AdminLevel = 0 is the country level in the supplied documentation. Remove RecordStatus only if you also need inactive locations.

5. Planning periods and years

CalendarYear is on Period, not Plan. Inspect the available period rows before selecting a year.

GraphQL query
query PlanningPeriods($first: Int!, $after: String) {
  periods(first: $first, after: $after, orderBy: { Id: ASC }) {
    items { Id Name CalendarYear PeriodType StartDate EndDate }
    hasNextPage
    endCursor
  }
}
Variables
{
  "first": 20,
  "after": null
}

Different period rows can share a calendar year. This is a list of periods, not a distinct list of years.

6. Plans: one page

List plans and request only their basic fields.

GraphQL query
query PlansPage($first: Int!, $after: String) {
  plans(first: $first, after: $after, orderBy: { Id: ASC }) {
    items { Id Name PlanCode PlanType StartDate EndDate }
    hasNextPage
    endCursor
  }
}
Variables
{
  "first": 20,
  "after": null
}
7. Plan by ID: fixed value

Select the plan whose Id equals 1202. Replace 1202 with an ID from Plans: one page.

GraphQL query
query Plan1202 {
  plans(first: 1, filter: { Id: { eq: 1202 } }) {
    items { Id Name PlanCode StartDate EndDate }
  }
}

No variables required. Use an empty Variables box or {}.

Example IDs illustrate syntax. They are not a promise that a matching record is available to your subscription.

8. Plan by ID: variable

Keep the query unchanged and supply a different planId in Variables.

GraphQL query
query PlanById($planId: Int!) {
  plans(first: 1, filter: { Id: { eq: $planId } }) {
    items { Id Name PlanCode StartDate EndDate }
  }
}
Variables
{
  "planId": 1202
}
9. Plan with emergencies and countries

Follow collection relationships from a plan. Each nested collection has its own page information.

GraphQL query
query PlanWithContext($planId: Int!) {
  plans(first: 1, filter: { Id: { eq: $planId } }) {
    items {
      Id
      Name
      emergency(first: 10, orderBy: { Id: ASC }) {
        items { Id Name EmergencyType EmergencyDate }
        hasNextPage
        endCursor
      }
      location(first: 10, filter: { AdminLevel: { eq: 0 } }, orderBy: { Id: ASC }) {
        items { Id Name ISO3 }
        hasNextPage
        endCursor
      }
    }
  }
}
Variables
{
  "planId": 1202
}
10. Plans by year: fixed value

Select plans with a related Period for calendar year 2026.

GraphQL query
query PlansIn2026 {
  plans(first: 20, filter: { period: { CalendarYear: { eq: 2026 } } }, orderBy: { Id: ASC }) {
    items { Id Name PlanCode }
    hasNextPage
    endCursor
  }
}

No variables required. Use an empty Variables box or {}.

11. Plans by year: variables and periods

The outer relationship filter selects plans. The inner filter limits the period rows shown for each plan.

GraphQL query
query PlansByYear($year: Int!, $first: Int!, $after: String) {
  plans(
    first: $first
    after: $after
    filter: { period: { CalendarYear: { eq: $year } } }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      Name
      PlanCode
      period(first: 10, filter: { CalendarYear: { eq: $year } }, orderBy: { Id: ASC }) {
        items { Id CalendarYear PeriodType }
        hasNextPage
        endCursor
      }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "year": 2026,
  "first": 20,
  "after": null
}
12. Project and its plan

Start from a project and follow plan, which returns one object rather than a collection.

GraphQL query
query ProjectWithPlan($projectId: Int!) {
  projects(first: 1, filter: { Id: { eq: $projectId } }) {
    items {
      Id
      Name
      ProjectCode
      PlanId
      plan { Id Name PlanCode }
    }
  }
}
Variables
{
  "projectId": 12345
}

Get a real project ID from Projects by plan before using this example.

13. Emergencies by plan

Use the reverse relationship to find emergencies linked to a selected plan.

GraphQL query
query EmergenciesByPlan($planId: Int!, $first: Int!, $after: String) {
  emergencies(
    first: $first
    after: $after
    filter: { plan: { Id: { eq: $planId } } }
    orderBy: { Id: ASC }
  ) {
    items { Id Name EmergencyType EmergencyDate }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}
14. Projects by plan

Project has a direct PlanId field, so use a direct filter.

GraphQL query
query ProjectsByPlan($planId: Int!, $first: Int!, $after: String) {
  projects(first: $first, after: $after, filter: { PlanId: { eq: $planId } }, orderBy: { Id: ASC }) {
    items { Id Name ProjectCode PlanId IsPublished CurrentRequestedFunds }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}
15. Sectors by plan

Find global sectors connected to field clusters in a selected plan.

GraphQL query
query SectorsByPlan($planId: Int!, $first: Int!, $after: String) {
  sectors(
    first: $first
    after: $after
    filter: { coordinationEntity: { PlanId: { eq: $planId }, EntityTypeId: { eq: 10 } } }
    orderBy: { Id: ASC }
  ) {
    items { Id Name SectorCode SectorType }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}

EntityTypeId 10 identifies field clusters in the supplied documentation. This returns global sectors, not the local cluster names.

16. Field clusters and their global sectors

Return plan-level names and follow sector to their global reference records.

GraphQL query
query FieldClustersByPlan($planId: Int!, $first: Int!, $after: String) {
  coordinationEntities(
    first: $first
    after: $after
    filter: { PlanId: { eq: $planId }, EntityTypeId: { eq: 10 } }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      Name
      PlanId
      EntityTypeId
      sector(first: 10, orderBy: { Id: ASC }) {
        items { Id Name SectorCode }
        hasNextPage
        endCursor
      }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}

A field cluster may link to more than one global sector. Do not assign its total to each sector automatically.

17. Coordination entities by project

Use a relationship filter to find coordination entities connected to a project.

GraphQL query
query CoordinationEntitiesByProject($projectId: Int!, $first: Int!, $after: String) {
  coordinationEntities(
    first: $first
    after: $after
    filter: { project: { Id: { eq: $projectId } } }
    orderBy: { Id: ASC }
  ) {
    items { Id Name PlanId EntityTypeId }
    hasNextPage
    endCursor
  }
}
Variables
{
  "projectId": 12345,
  "first": 20,
  "after": null
}
18. Organizations by name

Search within Name. Replace OCHA with the text you need.

GraphQL query
query OrganizationsByName($name: String!, $first: Int!, $after: String) {
  organizations(
    first: $first
    after: $after
    filter: { Name: { contains: $name } }
    orderBy: { Id: ASC }
  ) {
    items { Id Name Abbreviation url }
    hasNextPage
    endCursor
  }
}
Variables
{
  "name": "OCHA",
  "first": 20,
  "after": null
}

Avoid an empty name search, which can match many rows. Text matching follows the service’s database settings.

19. Organizations by name OR ID

A row qualifies when either its name contains OCHA or its ID equals 123.

GraphQL query
query OrganizationsNameOrId {
  organizations(
    first: 20
    filter: { or: [ { Name: { contains: "OCHA" } }, { Id: { eq: 123 } } ] }
    orderBy: { Id: ASC }
  ) {
    items { Id Name Abbreviation }
    hasNextPage
    endCursor
  }
}

No variables required. Use an empty Variables box or {}.

20. Plan requirement rows

Return original and current total cost rows owned directly by a plan. Read the Requirements and results section before combining these values.

GraphQL query
query PlanRequirementRows($planId: Int!, $first: Int!, $after: String) {
  attachmentFacts(
    first: $first
    after: $after
    filter: {
      IsTotal: { eq: true }
      RevisionStateId: { in: [1, 2] }
      attachment: {
        PlanId: { eq: $planId }
        EntityMainType: { eq: "Plan" }
        AttachmentType: { eq: "Cost" }
      }
    }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      AttachmentId
      MetricTypeId
      RevisionStateId
      IsTotal
      ValueNum
      metricType { Id Name }
      attachment { Id Name PlanId EntityMainType AttachmentType UnitId }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}

Keep AttachmentId and MetricTypeId when selecting revisions. An absent state 2 can fall back to state 1 for the same metric; zero is a value, not an absent row.

21. Plan requirements by year

Retrieve cost facts using their plan’s period relationship. This flat result is easier to page than several nested fact collections.

GraphQL query
query RequirementRowsByYear($year: Int!, $first: Int!, $after: String) {
  attachmentFacts(
    first: $first
    after: $after
    filter: {
      IsTotal: { eq: true }
      RevisionStateId: { in: [1, 2] }
      attachment: {
        EntityMainType: { eq: "Plan" }
        AttachmentType: { eq: "Cost" }
        plan: { period: { CalendarYear: { eq: $year } } }
      }
    }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      AttachmentId
      MetricTypeId
      RevisionStateId
      ValueNum
      metricType { Id Name }
      attachment { Id Name PlanId UnitId plan { Id Name PlanCode } }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "year": 2026,
  "first": 20,
  "after": null
}

This finds requirement rows for plans linked to the year. Plans without matching cost facts are absent; use Plans by year for a complete plan list.

22. Field-cluster cost rows

Retrieve total cost facts and their owning coordination entity. The relationship filter limits the owners to field clusters.

GraphQL query
query FieldClusterCostRows($planId: Int!, $first: Int!, $after: String) {
  attachmentFacts(
    first: $first
    after: $after
    filter: {
      IsTotal: { eq: true }
      RevisionStateId: { in: [1, 2] }
      attachment: {
        PlanId: { eq: $planId }
        EntityMainType: { eq: "CoordinationEntity" }
        AttachmentType: { eq: "Cost" }
        coordinationEntity: { EntityTypeId: { eq: 10 } }
      }
    }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      AttachmentId
      MetricTypeId
      RevisionStateId
      SectorId
      ValueNum
      metricType { Id Name }
      attachment {
        Id
        PlanId
        EntityId
        UnitId
        coordinationEntity { Id Name EntityTypeId }
      }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "planId": 1202,
  "first": 20,
  "after": null
}

SectorId may be null on total rows. These are cluster totals; the SectorId field alone is not a complete sector-attribution rule.

23. Reported result rows by attachment

MeasurementFact contains reported values. Follow measurement to its reporting period.

GraphQL query
query ReportedResults($attachmentId: Int!, $first: Int!, $after: String) {
  measurementFacts(
    first: $first
    after: $after
    filter: { AttachmentId: { eq: $attachmentId }, IsTotal: { eq: true } }
    orderBy: { Id: ASC }
  ) {
    items {
      Id
      AttachmentId
      MeasurementId
      MetricTypeId
      ValueNum
      metricType { Id Name }
      measurement {
        Id
        MeasurementPeriodId
        MeasurementType
        planReportingPeriod { Id PlanId PeriodNumber StartDate EndDate }
      }
    }
    hasNextPage
    endCursor
  }
}
Variables
{
  "attachmentId": 123,
  "first": 20,
  "after": null
}

Replace 123 with an AttachmentId returned by a requirement query or an attachments query. This example returns all matching reporting periods, not a computed latest value.

24. Metric types and revision states

Resolve numeric classification IDs using reference collections.

GraphQL query
query ReferenceMeanings {
  metricTypes(first: 20, orderBy: { Id: ASC }) {
    items { Id Name Description }
    hasNextPage
    endCursor
  }
  revisionStates(first: 20, orderBy: { Id: ASC }) {
    items { Id Name DisplayName Description }
    hasNextPage
    endCursor
  }
}

No variables required. Use an empty Variables box or {}.

These two collections page independently. Use a separate request for either collection if more rows remain.

25. Plans by a list of IDs

The in operator accepts several IDs.

GraphQL query
query PlansByIds {
  plans(first: 10, filter: { Id: { in: [1202, 1263] } }, orderBy: { Id: ASC }) {
    items { Id Name PlanCode }
    hasNextPage
    endCursor
  }
}

No variables required. Use an empty Variables box or {}.

26. Locations without a parent

Use isNull to find missing values. This does not by itself mean the location is a country.

GraphQL query
query LocationsWithoutParent {
  locations(first: 20, filter: { ParentId: { isNull: true } }, orderBy: { Id: ASC }) {
    items { Id Name AdminLevel ParentId }
    hasNextPage
    endCursor
  }
}

No variables required. Use an empty Variables box or {}.

28. Rename response fields with aliases

Aliases change the names in the JSON response, not the names in the schema.

GraphQL query
query PlanAliases {
  plans(first: 1, filter: { Id: { eq: 1202 } }) {
    items { planId: Id planName: Name }
  }
}

No variables required. Use an empty Variables box or {}.

08

Use the API in applications

Send authenticated GraphQL requests from Postman or code, handle errors, and plan your API usage.

Request format

SettingValue
HTTP methodPOST
Endpointhttps://api.humanitarianaction.info/graphql/v1
Content-Typeapplication/json
Subscription headerOcp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
BodyA JSON object with a GraphQL query string and a variables object

Use either active subscription key from Profile. Portal Entra ID sign-in does not mean your application must obtain a Fabric token. For this documented gateway route, send the APIM subscription key.

Complete JSON request body
{
  "query": "query PlanById($planId: Int!) {\n  plans(first: 1, filter: { Id: { eq: $planId } }) {\n    items { Id Name PlanCode StartDate EndDate }\n  }\n}\n",
  "variables": {
    "planId": 1202
  }
}

Postman

  1. Create a new HTTP request and select POST.
  2. Enter the endpoint above.
  3. Add the Ocp-Apim-Subscription-Key header with your active key.
  4. Under Body, select GraphQL. Paste the query from Plan by ID: variable into Query and its JSON into Variables. Alternatively, select raw JSON and paste the complete request body above.
  5. Ensure Content-Type is application/json, send the request, and inspect both the status and body.

cURL on Windows

Copy the complete JSON request body above into a file named request.json. From that file’s folder, replace the key placeholder and run this command. It sends the file so you do not have to escape the query in the command line. On Linux or macOS, use curl in place of curl.exe.

Windows cURL
curl.exe --request POST "https://api.humanitarianaction.info/graphql/v1" --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" --data-binary "@request.json"

Python

Copy this code into call-api.py. It uses Python’s standard library. Set the HA_API_KEY environment variable, then run python call-api.py. Replace the example plan ID with one returned by the API.

Python example
import json
import os
from urllib.request import Request, urlopen
from urllib.error import HTTPError

url = "https://api.humanitarianaction.info/graphql/v1"
query = """
query PlanById($planId: Int!) {
  plans(first: 1, filter: { Id: { eq: $planId } }) {
    items { Id Name PlanCode StartDate EndDate }
  }
}
"""
body = json.dumps({"query": query, "variables": {"planId": 1202}}).encode("utf-8")
request = Request(url, data=body, method="POST", headers={
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": os.environ["HA_API_KEY"]
})
try:
    with urlopen(request, timeout=60) as response:
        raw = response.read().decode("utf-8")
except HTTPError as error:
    details = error.read().decode("utf-8", errors="replace")
    raise RuntimeError(f"HTTP {error.code}: {details}") from error
result = json.loads(raw)
if result.get("errors"):
    raise RuntimeError(json.dumps(result["errors"], indent=2))
for plan in result["data"]["plans"]["items"]:
    print(plan["Id"], plan["Name"])

Node.js

Use a Node.js version with built-in fetch, such as Node.js 18 or later. Save this code as call-api.mjs, set HA_API_KEY, then run node call-api.mjs.

Node.js example
const endpoint = "https://api.humanitarianaction.info/graphql/v1";
const key = process.env.HA_API_KEY;
if (!key) throw new Error("Set HA_API_KEY before running this example.");
const query = `query PlanById($planId: Int!) {
  plans(first: 1, filter: { Id: { eq: $planId } }) {
    items { Id Name PlanCode StartDate EndDate }
  }
}`;
const response = await fetch(endpoint, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": key
  },
  body: JSON.stringify({ query, variables: { planId: 1202 } })
});
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const result = JSON.parse(text);
if (result.errors?.length) throw new Error(JSON.stringify(result.errors));
for (const plan of result.data.plans.items) {
  console.log(plan.Id, plan.Name);
}

Excel & Power Query

Connect Excel or Power BI to the API and load GraphQL results into a table.

Before you start

You need an active API subscription key.

Do not have a subscription key? Sign in to the Developer Portal, subscribe to Evaluation, and find your subscription key in Profile.

1. Open Power Query

In Excel:

  1. Open the Data tab.
  2. Select Get Data → From Other Sources → Blank Query.

In Power BI Desktop:

  1. Select Home → Transform data.
  2. In Power Query Editor, select New Source → Blank Query.

2. Add your subscription key

  1. In Power Query Editor, select Home → Manage Parameters → New Parameter.
  2. Use the settings below and paste your subscription key as the current value.
SettingValue
NamepApimSubscriptionKey
RequiredYes
TypeText
Suggested valuesAny value
Current valuePaste only the subscription key value

3. Add the Power Query code

  1. Select the blank query and open Home → Advanced Editor.
  2. Remove the existing content, copy the code below and select Done.
Power Query M
let

    Endpoint = "https://api.humanitarianaction.info/graphql/v1",



    GraphQLQuery = "

        query {

            plans(first: 100) {

                items {

                    Id

                    Name

                }

            }

        }",



    Response = Json.Document(

        Web.Contents(

            Endpoint,

            [

                Headers = [

                    #"Ocp-Apim-Subscription-Key" = pApimSubscriptionKey,

                    #"Content-Type" = "application/json",

                    Accept = "application/json"

                ],

                Content = Json.FromValue([

                    query = GraphQLQuery

                ]),

                Timeout = #duration(0, 0, 5, 0)

            ]

        )

    ),



    GraphQLErrors = Record.FieldOrDefault(Response, "errors", null),



    Items =

        if GraphQLErrors <> null then

            error Error.Record(

                "GraphQL",

                "The API returned GraphQL errors.",

                GraphQLErrors

            )

        else

            Response[data][plans][items],



    Result = Table.FromRecords(Items)

in

    Result
About the sample: It requests the Id and Name of the first 100 Plans. To retrieve different data, replace the GraphQLQuery section with a query from the Sample Queries section of the API documentation. Inside a Power Query text value, write each quotation mark from the GraphQL query as two quotation marks: "".

4. Connect and load the results

  1. When prompted for credentials, select Anonymous.
  2. Apply it to https://api.humanitarianaction.info.
  3. Select Organizational as the privacy level, then connect.
  4. In Excel, select Home → Close & Load.
  5. In Power BI Desktop, select Home → Close & Apply.
Use Data → Refresh All in Excel, or Refresh in Power BI Desktop, to run the query again.

Handle HTTP and GraphQL errors

ResponseWhat to check
HTTP 200Inspect the errors array before treating the request as successful. Partial data and errors can appear together.
HTTP 400Check JSON syntax, the query’s field names and variable types. Read the body for the validation message.
HTTP 401Check that the subscription key is present, correct and active. If it is, report the response to the API team; authentication failures can have other causes.
HTTP 403Read the message: access may be denied or a product quota may be exhausted. For quota responses, follow Retry-After where supplied.
HTTP 429The short-term rate limit may be exceeded. Wait for the Retry-After interval when supplied.
HTTP 5xxA service or backend problem may have occurred. Retry transient failures with a delay, then contact the API team if it persists.

Do not retry invalid queries or authentication failures in a tight loop. For transient errors, use a bounded retry count and increasing delay. Keep partial responses only if your application has an explicit rule for doing so.

Illustrative GraphQL error — exact wording varies
{
  "errors": [
    {
      "message": "The field requested by the query is not available."
    }
  ]
}

An empty result items: [] with no errors is different from a failed request. It means no matching records were returned.

Usage and keys

The API supports application use. Choose a product whose rate and quota limits fit your workload. Each page request uses the allowance; a large nested query can still be costly even if it is one HTTP call.

Store application keys in environment variables or a secret store. Do not commit real keys to GitHub or embed a shared key in a public browser application. A server-side application can call the API and return the data its users need.

For higher limits, contact the SPPB-Tools team with your organization, application, expected request volume and extraction schedule. Include page sizes and the data you need.

Report a problem

Send the endpoint, query, variables, HTTP status, error response and time of the request, including the time zone. Include any request or correlation identifier returned in the headers. Remove subscription keys and sensitive values before sharing the details.

Further documentation