Posts

Les différents posts publiés par les différents groupes

Appelés Articles dans le code pour des soucis de rétrocompatibilité. Sera renommé en Post partout dans le futur.

Types

Article implements Node, Pictured, Reactable, Shareable

  • author: User?
  • authorId: ID?
  • body: String
  • bodyHtml: String

    Déprécié

    Use bodyHtmlSafe. bodyHtmlSafe will eventually be renamed to bodyHtml too.

  • bodyHtmlSafe: HTML
  • bodyPreview: String
  • canBeEdited: Boolean

    Déprécié

    Use canEdit instead.

  • canEdit(​assert:  String?) →  Boolean
  • createdAt: DateTime
  • event: Event?
  • eventId: ID?
  • group: Group
  • groupId: ID
  • hasSeparateDarkPicture: Boolean
  • id: ID
  • links: [ Link]
  • localID: LocalID
  • myReactions: BooleanMap
  • notifiedAt: DateTime?

    Déprécié

    Le champ n'est plus mis à jour maintenant

  • pictureAltText: String
  • pictureFile: String
  • pictureFileDark: String
  • pictureURL(​dark:  Boolean = false, ​timestamp:  Boolean = true) →  String

    Arguments

    • dark: Boolean
    • timestamp: Boolean = true
  • published: Boolean
  • publishedAt: DateTime
  • reacted(​emoji:  String) →  Boolean
  • reactionCounts: Counts
  • reactions(​emoji:  String) →  Int
  • shares: Int
  • slug: String
  • title: String
  • uid: String

    Déprécié

    Use `slug` instead. This field was never universally unique.

  • visibility: GroupRestricted | Private | Public | SchoolRestricted | Unlisted

N
PostInput

  • body: String?
  • event: LocalID?
  • publishedAt: DateTime?
  • title: String?
  • visibility: (GroupRestricted | Private | Public | SchoolRestricted | Unlisted)?

Queries

article(​id:  LocalID) →  Article

articleID(​group:  UID, ​slug:  String) →  LocalID?

Déprécié

Utilisez `article` à la place

homepage(​after:  String?, ​before:  String?, ​first:  Int?, ​last:  Int?) →  Connection< Article>

Mutations

changePostOwner(​group:  UID, ​post:  LocalID) →  Result< Article>

createPost(​body:  String = , ​event:  LocalID, ​group:  UID, ​title:  String = ) →  Result< Article>

deleteArticle(​id:  LocalID) →  Result< Article>

deleteArticlePicture(​id:  ID) →  Boolean

unlinkEventFromPost(​post:  LocalID) →  Result< Article>

updateArticlePicture(​file:  File, ​id:  ID) →  String

upsertArticle(​...) →  Result< Article>

Déprécié

Use upsertArticleV2 instead

upsertArticleV2(​group:  UID?, ​id:  LocalID?, ​input:  PostInput) →  Result< Article>

Subscriptions

article(​id:  LocalID) →  Article

homepage(​after:  String?, ​before:  String?, ​first:  Int?, ​last:  Int?) →  Connection< Article>

Churros API, version dev (at c92221f)

Made with <3 by net7 net7

Documentation generated with Graphinx