Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot query field sourceId/targetId on type PublicationEdge #1

Open
sneumann opened this issue Nov 21, 2023 · 1 comment · May be fixed by #2
Open

Cannot query field sourceId/targetId on type PublicationEdge #1

sneumann opened this issue Nov 21, 2023 · 1 comment · May be fixed by #2

Comments

@sneumann
Copy link

sneumann commented Nov 21, 2023

Hi,
when running the notebook r-person-publications.ipynb (or pasting into https://api.datacite.org/graphql ) the query below, I get errors "Cannot query field "sourceId" on type "PublicationEdge" and same for "targetId". Has the schema changed ?
Docs say the following, and I don't see source (asuming node became the target):

type PublicationEdge {
  # A cursor for use in pagination.
  cursor: String!
  # The item at the end of the edge.
  node: Publication
}

Yours,
Steffen

Query at

"# Generate the GraphQL query: find the researcher by ORCID ID, then fetch the first 50 publications, datasets and software with DataCite DOIs linked to that ORCID account.\n",

{
  person(id: "https://orcid.org/0000-0003-1419-2405") {
    id
    type
    name
    publications(first: 50) {
      totalCount
      nodes {
        id
        type
        relatedIdentifiers {
          relatedIdentifier
        }
      }
      edges {
        sourceId
        targetId
      }
    }
    datasets(first: 50) {
      totalCount
      nodes {
        id
        type
        relatedIdentifiers {
          relatedIdentifier
        }
      }
      edges {
        sourceId
        targetId
      }
    }
    softwareSourceCodes(first: 50) {
      totalCount
      nodes {
        id
        type
        relatedIdentifiers {
          relatedIdentifier
        }
      }
      edges {
        sourceId
        targetId
      }
    }
  }
}

Front logo Front conversations

@MaryHirsch
Copy link

@sneumann thank you for the question. Would you mind sending this to support@datacite.org? This is the best way to contact us with technical support inquiries. Many thanks!

@sneumann sneumann linked a pull request Feb 5, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants