~sircmpwn/sr.ht-dev

Unable to list HEAD with graphql

Details
Message ID
<8cb582ed-9657-ec97-aea6-7348017eca76@tomlebreux.com>
DKIM signature
pass
Download raw message
Hi,

as mentioned on IRC, I'm getting an error when trying to get the HEAD 
field when using the git.sr.ht graphql playground [0].

I am using the following query:

     query {
       me {
         repositories(filter: { count: 5 }) {
           cursor
           results {
             id, name, updated, HEAD
           }
         }
       }
     }

which gives the following error: graphql execution returned code 422

Without this HEAD field, I get a correct results like so:

     {
       "data": {
         "me": {
           "repositories": {
             "cursor": "..."
             "results": [
               {
               ...
               }
             ]
           }
         }
       }
     }

The 5 repositories are initialized.


[0]: https://git.sr.ht/graphql
Reply to thread Export thread (mbox)