Having this Query in the grapiql Playground
query GetInstrumentsTaxationCountry($instrumentList: [EDFInstrumentIdentifierArgs!]) {
EDFInstrument(identifiers: $instrumentList) {
TaxationCountry {
Identifier {
Identifiers(filter: {ValueTypeId: {EQ: "320640"}}) {
Value
ValueTypeId
ValueTypeCode
}
}
Geography {
Name
LongName
}
}
InstrumentIdentifiers(limit: 1) {
_metadata {
identifier
}
}
}
}
And with the list of isins as variables
{
"instrumentList": [
{
"identifier": "ES0130670112",
"identifierTypeName": "Isin"
},
{
"identifier": "AT0000A0E9W5",
"identifierTypeName": "Isin"
},
{
"identifier": "BMG0112X1056",
"identifierTypeName": "Isin"
},
{
"identifier": "BMG162341090",
"identifierTypeName": "Isin"
},
{
"identifier": "BMG162521014",
"identifierTypeName": "Isin"
},
{
"identifier": "BMG162581083",
"identifierTypeName": "Isin"
},
{
"identifier": "BMG455841020",
"identifierTypeName": "Isin"
},
{
"identifier": "BMG5005R1079",
"identifierTypeName": "Isin"
},
{
"identifier": "BMG9156K1018",
"identifierTypeName": "Isin"
},
{
"identifier": "US0076CA1045",
"identifierTypeName": "Isin"
},
{
"identifier": "US05554M1009",
"identifierTypeName": "Isin"
}
]
}
The response return the tax countries for all but the _metadata in the InstrumentIdentifiers block is the same for all, it's always the same as the last in the variable list. I need it to match the data return to distinguish which data is related to the corresponding ISIN. Response:
{
"data": {
"EDFInstrument": [
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "NO",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Norway (Country)",
"LongName": "Norway"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "AT",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Austria (Country)",
"LongName": "Austria"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "NL",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Netherlands (Country)",
"LongName": "Netherlands"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "ES",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Spain (Country)",
"LongName": "Spain"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "BM",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Bermuda (Country)",
"LongName": "Bermuda"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "NL",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Netherlands (Country)",
"LongName": "Netherlands"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "BM",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Bermuda (Country)",
"LongName": "Bermuda"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "BM",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Bermuda (Country)",
"LongName": "Bermuda"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": {
"Identifier": {
"Identifiers": [
{
"Value": "BM",
"ValueTypeId": "320640",
"ValueTypeCode": "GcodeCountryCode"
}
]
},
"Geography": {
"Name": "Bermuda (Country)",
"LongName": "Bermuda"
}
},
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
},
{
"TaxationCountry": null,
"InstrumentIdentifiers": [
{
"_metadata": {
"identifier": "US05554M1009"
}
}
]
}
]
},
"extensions": {
"warnings": [
{
"field": "InstrumentIdentifiers",
"message": "Results may have been truncated. Specify a limit and cursor to fetch more.",
"type": "RESULT_TRUNCATED",
"warningCode": "DW005"
},
{
"field": "EDFInstrument.InstrumentIdentifiers.IdentifierTypeId_v2",
"message": "User did not have entitlements to the field.",
"type": "NO_ENTITLEMENTS_FOR_FIELD",
"warningCode": "DW003"
}
]
}
}
Is this a bug or is there something wrong with my GQL query?