There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(core): gql file upload (#9134)
darkskygit76f2c31e46ff
diff --git a/packages/frontend/graphql/export-gql-plugin.cjs b/packages/frontend/graphql/export-gql-plugin.cjsindex 0d8baf2522..27322de6a6 100644--- a/packages/frontend/graphql/export-gql-plugin.cjs+++ b/packages/frontend/graphql/export-gql-plugin.cjs@@ -138,7 +138,7 @@ module.exports = {if (schema.getType(type)?.name === 'Upload') return true;const typeDef = schema.getType(type);const fields = typeDef.getFields?.();- if (!fields || !fields.length) return false;+ if (!fields || typeof fields !== 'object') return false;for (let field of Object.values(fields)) {let type = field.type;while (type.ofType) {diff --git a/packages/frontend/graphql/src/graphql/index.ts b/packages/frontend/graphql/src/graphql/index.tsindex 8b09b06891..9c3417caf0 100644--- a/packages/frontend/graphql/src/graphql/index.ts+++ b/packages/frontend/graphql/src/graphql/index.ts@@ -188,7 +188,7 @@ export const createCopilotMessageMutation = {id: 'createCopilotMessageMutation' as const,operationName: 'createCopilotMessage',definitionName: 'createCopilotMessage',- containsFile: false,+ containsFile: true,query: `mutation createCopilotMessage($options: CreateChatMessageInput!) {createCopilotMessage(options: $options)