Upgrade Guides

List all current breaking changes in the GraphQL API and how to upgrade your application.

Each deprecated field will be maintained for 6 months until we remove it definitely. Be sure to update your application before this deadline!

Stay tuned #sirius-developer!

ArticleVersion

createdAt

Maintained until 2022-12-08

Use date field instead.

Example with ArticleVersion query:

query {
node(id: "<An articleVersion ID>") {
id
internalId
... on ArticleVersion {
title
chapo
- createdAt
+ date
}
}
}

Article

freeAuthors

Maintained until 2023-03-06

Use signatures instead

read

Still maintained until migrate legacy data.

write

Update or create Article Mutation example:

# create author
+mutation {
+ createAuthor(input: { name: "", origin: "" }) {
+ id
+ }
+}
# then associate it to an article
mutation {
createArticle(
input: {
#....
+ signatures: [{ authorId: "", origin: "" }]
- freeAuthors: [{ name: "", origine: "" }]
#....
}
) {
id
}
}

sectionId

Maintained until 2023-03-06

Use serviceId instead, just a renaming.

Query articles example:

query {
articles(where: {
+ serviceId: "<A service ID>",
- sectionId: "<A service ID>" }) {
nodes {
id
}
}
}

ImageBlock

caption

position

size

Maintained until 2023-03-06

Use ImageView caption, position and size instead.

Query article's blocks example:

query {
node(id: "<An Article ID>") {
id
blocks {
... on ImageBlock {
id
imageView {
+ caption
+ position
+ size
}
- caption
- position
- size
}
}
}
}

Image

agency

Maintained until 2023-03-06

Use agencies instead. A list of ImageAgency, return empty table if it's not defined.

Query articles example:

query {
node(id: "<An Image ID>"){
... on Image {
+ agencies{ name }
- agency{ name }
}
}
}
Edit this page on GitHub