Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 4f1c2b1

Browse files
committed
Add query for 404 page via settings
1 parent 1b0cc76 commit 4f1c2b1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {gql} from '@apollo/client'
2+
import {singlePageFragment} from './queryPageById'
3+
4+
// Query: retrieve 404 error page.
5+
const queryError404Page = gql`
6+
query GET_ERROR_404_PAGE($imageSize: MediaItemSizeEnum = LARGE) {
7+
additionalSettings {
8+
additionalSettings {
9+
error404Page {
10+
... on Page {
11+
...SinglePageFields
12+
}
13+
}
14+
}
15+
}
16+
}
17+
${singlePageFragment}
18+
`
19+
20+
export default queryError404Page

0 commit comments

Comments
 (0)