What is the difference between ID and databaseID?

Hello,

I am starting a new integration with GitHub API v4 (the one using GraphQL).

I see for example that the User and Repository objects have the fields id and databaseid.

What is the difference between them?

Which should I use?

Thanks

Hi,

so many views and no one can help on this question ?!?

 ¯_(ツ)_/¯

type api v3 api v4 Exemple
int (8) id databaseId 12345678
String (20) node_id id MD96VXZlcjU0Mpd4NTY0
On API v4, you should use **id** which is the main id for graphQL.
2 Likes