Son
Son
CCConvex Community
Created by Gary, el Pingüino Artefacto on 9/10/2024 in #support-community
How to aggregate documents (more than 16K)?
will something like this be possible soon?
ctx.db
.query("eventMoment")
.withIndex("by_creatorId",(q) => q.eq("creatorId",partnerId))
.filter((q) => q.eq(q.field("hasPartnerSeen"),false))
.count(),
ctx.db
.query("eventMoment")
.withIndex("by_creatorId",(q) => q.eq("creatorId",partnerId))
.filter((q) => q.eq(q.field("hasPartnerSeen"),false))
.count(),
or
ctx.db
.query("eventMoment")
withIndex("by_creatorId_hasPartnerSeen",(q) => q.eq("creatorId",partnerId).eq("hasPartnerSeen",false)).count(),
ctx.db
.query("eventMoment")
withIndex("by_creatorId_hasPartnerSeen",(q) => q.eq("creatorId",partnerId).eq("hasPartnerSeen",false)).count(),
21 replies
CCConvex Community
Created by Son on 9/1/2024 in #support-community
Convex Monorepo Issue (react-dom native)
update: adding these two packages to the root package.json seems to have done the trick "dependencies": { "@clerk/clerk-js": "^5.18.0", "react-dom": "18.2.0" },
9 replies
CCConvex Community
Created by Near on 9/1/2024 in #support-community
Guarantees for the timing of scheduled functions
Thanks for the explanation!
13 replies
CCConvex Community
Created by Son on 9/1/2024 in #support-community
Convex Monorepo Issue (react-dom native)
got it working. had to install "@clerk/clerk-react": "^5.5.0", as well as react-dom same error, even after installing clerk-react in native project.
9 replies
CCConvex Community
Created by Son on 9/1/2024 in #support-community
Convex Monorepo Issue (react-dom native)
No description
9 replies
CCConvex Community
Created by Son on 9/1/2024 in #support-community
Convex Monorepo Issue (react-dom native)
No description
9 replies
CCConvex Community
Created by Son on 9/1/2024 in #support-community
Convex Monorepo Issue (react-dom native)
I installed it directly into my repo, (native app) and got the same issue unfortunately
9 replies
CCConvex Community
Created by Near on 9/1/2024 in #support-community
Guarantees for the timing of scheduled functions
Whats the difference between a scheduled function vs a cron job in convex’s context, what use cases would you use one over another?
13 replies
CCConvex Community
Created by Son on 9/1/2024 in #support-community
Convex Monorepo Issue (react-dom native)
No description
9 replies
CCConvex Community
Created by TwendyKirn on 3/13/2024 in #support-community
Set dynamic key in v.object inside database schema
looking forward to v.record @Michal Srb
8 replies
CCConvex Community
Created by FleetAdmiralJakob 🗕 🗗 🗙 on 4/10/2024 in #support-community
Feature Request: API for checking if query/mutation/action is loading
Makes alot of sense, thanks for the confirmation
139 replies
CCConvex Community
Created by FleetAdmiralJakob 🗕 🗗 🗙 on 4/10/2024 in #support-community
Feature Request: API for checking if query/mutation/action is loading
Since you’ve created a helper function for managing queries in a similar way, in your estimation is worth while switching over to this. Im using convex in a react-naive project .
139 replies
CCConvex Community
Created by Son on 6/21/2024 in #support-community
auto incremented int?
Thanks!
6 replies
CCConvex Community
Created by Son on 6/21/2024 in #support-community
auto incremented int?
This will suffice! Thanks. Is this something the team cares enough about to implement in the future?
6 replies
CCConvex Community
Created by Son on 6/17/2024 in #support-community
How to use useMutation with convex-ents. API object TYPE error
types work as expected now. unbelievable.
19 replies
CCConvex Community
Created by Son on 6/17/2024 in #support-community
How to use useMutation with convex-ents. API object TYPE error
found the issue. the baseConfig line 1 "extends": "@repo/typescript-config/base.json",
{
"extends": "@repo/typescript-config/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"jsx": "react-native",
"types": ["nativewind/types", "node"]
},
"typeRoots": ["./types/*"],
"include": [
"src",
"*.ts",
"index.tsx",
"*.js",
"env.d.ts",
".expo/types/**/*.ts",
"expo-env.d.ts",
"scripts/copy-design-system.js",
"scripts/incrementMinorVersion.js",
"scripts/incrementUpdateVersion.js"
],
"exclude": ["node_modules"]
}
{
"extends": "@repo/typescript-config/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"jsx": "react-native",
"types": ["nativewind/types", "node"]
},
"typeRoots": ["./types/*"],
"include": [
"src",
"*.ts",
"index.tsx",
"*.js",
"env.d.ts",
".expo/types/**/*.ts",
"expo-env.d.ts",
"scripts/copy-design-system.js",
"scripts/incrementMinorVersion.js",
"scripts/incrementUpdateVersion.js"
],
"exclude": ["node_modules"]
}
i commented out the base config which is below
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"incremental": false,
"isolatedModules": true,
"lib": ["es2022", "DOM", "DOM.Iterable"],
"module": "NodeNext",
"moduleDetection": "force",
"moduleResolution": "NodeNext",
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2022"
}
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"incremental": false,
"isolatedModules": true,
"lib": ["es2022", "DOM", "DOM.Iterable"],
"module": "NodeNext",
"moduleDetection": "force",
"moduleResolution": "NodeNext",
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2022"
}
}
`
19 replies
CCConvex Community
Created by Son on 6/17/2024 in #support-community
How to use useMutation with convex-ents. API object TYPE error
removed all non-related convex type errors. new repo https://github.com/AyoCodess/hm-demo-2
19 replies
CCConvex Community
Created by Son on 6/17/2024 in #support-community
How to use useMutation with convex-ents. API object TYPE error
so its to do with expo, same imports
19 replies
CCConvex Community
Created by Son on 6/17/2024 in #support-community
How to use useMutation with convex-ents. API object TYPE error
import { useConvexAuth, api, useMutation } from '@repo/api/core';
import { useRouter } from 'next/navigation';
import React, { use } from 'react';

const test = useMutation(api.relationships.test);
import { useConvexAuth, api, useMutation } from '@repo/api/core';
import { useRouter } from 'next/navigation';
import React, { use } from 'react';

const test = useMutation(api.relationships.test);
` this had no issues in my next js app
19 replies