DCsan
DCsan
DTDrizzle Team
Created by itsyoboieltr on 11/13/2023 in #help
Full-text search on jsonb column
thanks! did you find any way to query arrays in JSONb columns?
10 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
virtual / calculated fields
the code that goes into /convex dir is eventually running client side? or those are pushed funcs that are run server side? still a bit confused about the basics here 😄
19 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
virtual / calculated fields
could the POJO have a mixin mixed in for these extra methods? since my queries are running client side, we're not sending any code over the wire, just mixing some extra methods into the returned POJO. they would only run if the user invoked them.
19 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
virtual / calculated fields
https://stack.convex.dev/functional-relationships-helpers looking at the schema ex here, it seems about defining types, not functions
19 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
virtual / calculated fields
is there an actual underlying class for each table in the db? i havent looked at schema defs yet (typescript)
19 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
virtual / calculated fields
wondering where i can apply that method so i don't have to recalc every time i return a value?
19 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
pattern for handling failed TXs
i recall go has some other method for dealing with this and avoiding try/catch. just looking for a common pattern. returning a struct with {ok: false, ...} seems a normal http way to go?
9 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
better logging / debug output
(any reason image posts are disabled here?)
12 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
better logging / debug output
'try buyCard' '{\n "user": null,\n "owner": {\n "_creationTime": 1687750904475.0508,\n "_id": "3k8fn157w2ytf4pks5wtb3am9h71se0",\n "cardId": "whale",\n "lv": 3,\n "user": "omer"\n },\n "userCard": {\n "_creationTime": 1687750904475.0508,\n "_id": "3k8fn157w2ytf4pks5wtb3am9h71se0",\n "cardId": "whale",\n "lv": 3,\n "user": "omer"\n },\n "baseCard": {\n "_creationTime": 1687750902675.883,\n "_id": "3ew9tax9wy1rcys1nj2mkqrz9h7e4xr",\n "ap": 1,\n "creator": "seaman",\n "dp": 5,\n "id": "whale",'... 37 more characters
'try buyCard' '{\n "user": null,\n "owner": {\n "_creationTime": 1687750904475.0508,\n "_id": "3k8fn157w2ytf4pks5wtb3am9h71se0",\n "cardId": "whale",\n "lv": 3,\n "user": "omer"\n },\n "userCard": {\n "_creationTime": 1687750904475.0508,\n "_id": "3k8fn157w2ytf4pks5wtb3am9h71se0",\n "cardId": "whale",\n "lv": 3,\n "user": "omer"\n },\n "baseCard": {\n "_creationTime": 1687750902675.883,\n "_id": "3ew9tax9wy1rcys1nj2mkqrz9h7e4xr",\n "ap": 1,\n "creator": "seaman",\n "dp": 5,\n "id": "whale",'... 37 more characters
12 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
better logging / debug output
in the dash also:
12 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
better logging / debug output
stringify in the console just gives me output with lots of \n in it
12 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
better logging / debug output
a bit less ugly in the dashboard
12 replies
CCConvex Community
Created by DCsan on 6/26/2023 in #support-community
better logging / debug output
browser console
12 replies
CCConvex Community
Created by DCsan on 6/25/2023 in #support-community
Argument of type 'unknown' is not assignable to parameter of type 'Id<string>'.
thanks! for now i've been typing the query params
type QUser = {
id?: string;
};

// usercards join on basecards
export const get = query(async ({ db }, param: QUser) => {
const { id } = param;
const user = await db
.query("users")
.filter((q) => q.eq(q.field("id"), id))
.unique();

return user;
});
type QUser = {
id?: string;
};

// usercards join on basecards
export const get = query(async ({ db }, param: QUser) => {
const { id } = param;
const user = await db
.query("users")
.filter((q) => q.eq(q.field("id"), id))
.unique();

return user;
});
7 replies
CCConvex Community
Created by DCsan on 6/13/2023 in #support-community
subscribe
ok doke, ty
33 replies
CCConvex Community
Created by DCsan on 6/13/2023 in #support-community
subscribe
would rather not import all of react into a SS app
33 replies