Skip to content

Instantly share code, notes, and snippets.

@ja573
ja573 / thoth_lse_data.graphql
Last active September 8, 2023 11:28
Complete list of all books by LSE Press on Thoth
{
books(publishers: "5da5617c-306b-4f68-b60b-abc74faf49f8", limit: 9999) {
workId
fullTitle
workType
workStatus
reference
doi
publicationDate
place
@ja573
ja573 / thoth_books_query-obp.graphql
Created August 22, 2022 09:21
Complete list of all published (`ACTIVE`) books by Open Book Publishers on Thoth GraphQL API
{
books(workStatus: ACTIVE, limit: 9999999, publishers: "85fd969a-a16c-480b-b641-cb9adf979c3b", order: {field: PUBLICATION_DATE, direction: DESC}) {
workType
workStatus
title
subtitle
fullTitle
edition
doi
publicationDate
@ja573
ja573 / thoth_workshop_basic_exercise.graphql
Last active August 22, 2022 09:20
Solution to the first exercise of the Thoth GraphQL Workshop
{
books(publishers: "85fd969a-a16c-480b-b641-cb9adf979c3b", order: {field: PUBLICATION_DATE, direction: DESC}) {
title
subtitle
publicationDate
doi
landingPage
contributions {
lastName
}
@ja573
ja573 / thoth_publishers_query.graphql
Created August 22, 2022 08:53
Thoth publishers query
{
publishers {
publisherId
publisherName
}
}
@ja573
ja573 / thoth_workshop_chapter_exercise.graphql
Created August 22, 2022 08:50
Solution to the second exercise of the Thoth GraphQL Workshop
{
work(workId: "0bdf8479-ab91-4d79-9936-587bd97277fe") {
fullTitle
relations(relationTypes: HAS_CHILD, order: {field: RELATION_ORDINAL, direction: ASC}) {
relatedWork {
fullTitle
}
}
}
}
@ja573
ja573 / thoth_work_query-reading_the_juggler.graphql
Created August 22, 2022 08:48
Complete book record on Thoth GraphQL
{
work(workId: "0bdf8479-ab91-4d79-9936-587bd97277fe") {
workType
workStatus
title
subtitle
fullTitle
edition
doi
publicationDate
### Keybase proof
I hereby claim:
* I am ja573 on github.
* I am ja573 (https://keybase.io/ja573) on keybase.
* I have a public key ASDaY402nV04mkJP-0ljzuRdllOTjJ-OGt_BjxrsgO50Ewo
To claim this, I am signing this object: