Added automatic duplication for templates of existing template BOD-253

This commit is contained in:
Patrick Fic
2020-08-21 13:35:44 -07:00
parent f29b961397
commit 488e316550
3 changed files with 31 additions and 9 deletions

View File

@@ -11,6 +11,18 @@ export const QUERY_TEMPLATES_BY_NAME = gql`
}
}
`;
export const QUERY_TEMPLATES_BY_NAME_FOR_DUPE = gql`
query QUERY_TEMPLATES_BY_NAME_FOR_DUPE($name: String!) {
templates(where: { name: { _eq: $name } }) {
id
name
query
html
bodyshopid
jsontemplate
}
}
`;
export const QUERY_CUSTOM_TEMPLATES = gql`
query QUERY_CUSTOM_TEMPLATES {