refactor: move GrapQL fragments
This commit is contained in:
@@ -1,36 +1,4 @@
|
||||
fragment CodeDefinedPage on CodeDefinedPage {
|
||||
title
|
||||
url
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
|
||||
fragment AccountPage on AccountPage {
|
||||
title
|
||||
url
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
|
||||
fragment LoyaltyPage on LoyaltyPage {
|
||||
title
|
||||
url
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
|
||||
fragment ContentPage on ContentPage {
|
||||
title
|
||||
web {
|
||||
url
|
||||
}
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
#import "../Fragments/PageLinks.graphql"
|
||||
|
||||
query GetNavigationMyPages {
|
||||
all_navigation_my_pages {
|
||||
@@ -49,10 +17,10 @@ query GetNavigationMyPages {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPage
|
||||
...LoyaltyPage
|
||||
...CodeDefinedPage
|
||||
...ContentPage
|
||||
...AccountPageLink
|
||||
...LoyaltyPageLink
|
||||
...CodeDefinedPageLink
|
||||
...ContentPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,10 +31,10 @@ query GetNavigationMyPages {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPage
|
||||
...LoyaltyPage
|
||||
...ContentPage
|
||||
...CodeDefinedPage
|
||||
...AccountPageLink
|
||||
...LoyaltyPageLink
|
||||
...ContentPageLink
|
||||
...CodeDefinedPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user