Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1141
GraphQL mvp rough schema
Active
Public
Actions
Authored by
jayeshv
on Aug 31 2021, 10:55 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
origin(url)
{
url
snapshots
}
snapshots(origin-url
,
limit) // not a must have
snapshot(sha
1
)
{
sha
1
origin
timestamp // timestamp from the visit table
,
a bit tricky as there could be many visits pointing to the same snapshot
branches(limit)
{
name
head revision
}
}
revision(sha
1
)
{
sha
1
origins(limit) // a bit tricky
,
one revision can be in many origins
snapshots(limit) // a bit tricky
author
...
parent revisions(limit)
directory
}
directory(sha
1
)
{
sha
1
name
...
contents(limit)
}
content(sha
1
)
{
sha
1
name
...
}
Event Timeline
jayeshv
created this paste.
Aug 31 2021, 10:55 AM
2021-08-31 10:55:49 (UTC+2)
Log In to Comment