Possibiity to retrive several Monday Doc info at once via Doc api

When we look at the query arguments that can be passed to Monday Docs API, we might think that object_ids accepts a list of object identifiers. But it’s not the case.

The following request returns empty data although both object_ids exists:
query {
docs (object_ids: [123456789,123456780]) {
id
}
}
Same result if object ids are passed like this:
query {
docs (object_ids: 123456789 123456780) {
id
}
}
But this request works:
query {
docs (object_ids: 123456789) {
id
}
}

Given the fact that object_ids is written in plural, I would say that it’s a bug more than a feature request. Who knows…

Hi @NicolasLfv

Looks like a documentation issue. The API dos at Docs shows the argument type as [ID!] in version 2023-10

However when you look at the scheme in the API Playground you see that the required argument type is ID!

Hi @basdebruin and @NicolasLfv,

2023-07= [Int] and 2023-10 and later = [ID!]. The docs reflect 2023-07 as that is the default version, but there is a note about it in the argument description in the screenshot posted above. January 15th, the docs will no longer reflect 2023-07 so this will all change! :slight_smile:

Screen Shot 2023-12-18 at 11.33.02 AM
Screen Shot 2023-12-18 at 11.33.08 AM

Best,
Rachel

It really would be nice if docs were versioned, in that we could select the version at the top for which API version we want docs for…

hi @rachelatmonday

Agree that the docs shows

But the actual type required is ID! and not [ID!], so either the doc or the API is wrong.

Working on it :wink:

Hey @basdebruin,

Actually, it seems like your screenshot is of the fields, but I believe we’re looking at the argument! Just confirmed that types match for both object_ids field and argument in both 2023-10 and 2023-07 :slight_smile:

Best,
Rachel

hi @rachelatmonday

Oops… my wrong, sorry. Still wondering why @NicolasLfv his example:

query {
docs (object_ids: [123456789,123456780]) {
  id
}

does not seem to work.

Hi @NicolasLfv,

Are you using the object_id or id in your argument?

This query uses the object_id and worked for me:

query {
  docs (object_ids: [4076242371, 4076243271]){
    name
  }
}

But earlier I accidentally tried with the id as the argument, and that query returned nothing:

query {
   docs (object_ids: [4580285, 4580287]){
   name
   }
 }

Best,
Rachel

I tried with an array of object ids as argument.

See details of the request in the image below:

No error returned, just an empty array for docs:
{“data”:{“docs”:},“account_id”:19686756}

And if I do the request using a single object id, it works.

P.S. I’m using Monday API version 2023-10

Hello there @NicolasLfv,

Would you be able to please send this over to appsupport@monday.com so we can take a look into it?

Looking forward to hearing from you via email!

Cheers,
Matias