publication.graphql 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # A resource publication represents information about the publication of a resource.
  2. # An instance of ResourcePublication, unlike ResourcePublicationV2, can be neither published or scheduled to be published.
  3. #
  4. # See ResourcePublicationV2 for more context.
  5. type ResourcePublication {
  6. # Whether the resource publication is published. Also returns true if the resource publication is scheduled to be published.
  7. # If false, then the resource publication is neither published nor scheduled to be published.
  8. isPublished: Boolean!
  9. # The publication the resource publication is published to.
  10. publication: Publication!
  11. # The date that the resource publication was or is going to be published to the publication.
  12. publishDate: DateTime!
  13. # The resource published to the publication.
  14. publishable: Publishable!
  15. }
  16. # A resource publication represents information about the publication of a resource.
  17. # Unlike ResourcePublication, an instance of ResourcePublicationV2 can't be unpublished. It must either be published or scheduled to be published.
  18. #
  19. # See ResourcePublication for more context.
  20. type ResourcePublicationV2 {
  21. # Whether the resource publication is published. If true, then the resource publication is published to the publication.
  22. # If false, then the resource publication is staged to be published to the publication.
  23. isPublished: Boolean!
  24. # The publication the resource publication is published to.
  25. publication: Publication!
  26. # The date that the resource publication was or is going to be published to the publication.
  27. publishDate: DateTime
  28. # The resource published to the publication.
  29. publishable: Publishable!
  30. }