Skip to content

Commit

Permalink
feat: create list types as well
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed May 27, 2020
1 parent eca421e commit 0d5839d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ export const i18nFieldType = (name, type) => /* GraphQL */ `
value: ${type}
values: [${name}Localized]!
}
type ${name}ListLocalized {
value: [${type}]
locale: ID!
}
type ${name}List {
value: [${type}]
values: [${name}ListLocalized]!
}
`;

0 comments on commit 0d5839d

Please sign in to comment.