ashuvssut (ashu)
CCConvex Community
•Created by ashuvssut (ashu) on 9/27/2023 in #support-community
Cannot resolve built-in Node's "crypto" library
Example:- (Just to show a working demo code): https://github.com/ashuvssut/cookied/tree/dev/apps/convex
6 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/27/2023 in #support-community
Cannot resolve built-in Node's "crypto" library
I would migrate to that browser like crpyto global, but there will to much code to change. So i decided to stick to node's crypto
This trick worked for me:-
take out all the logics that use node's crypto as utility function into a separate file. doesn't matter if you have written the crypto module's import statement or not, if you have used those utility function in some other file, you have to put "use node"; directive
this works only for Actions.
this wont work for Query or Mutation because only Actions can use Node.js runtime and query mutation cant
6 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/30/2023 in #support-community
Vector Index and Index cannot have same name in a table
By the way, this Error is not so serious. I am fine with naming my regular index
by_embedding_idx
I just thought that this Bug Report might help you5 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/27/2023 in #support-community
Cannot resolve built-in Node's "crypto" library
i tried to put "platform: 'node'" instead of "use node"... still no use
6 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/24/2023 in #support-community
a field to know the invoker of the query/mutation's in ctx argument
OR we can have a private argument
internal_payload
that is only allowed to be set by an internal function. By this way, we can pass info from the internal function to the query/mutation. Client cannot set this argument internal_payload
3 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/23/2023 in #support-community
Invoking actions whenever a document is created/edit in a table
CLOSED
Refer the Message and the Conversation thread
https://discord.com/channels/1019350475847499849/1019350478817079338/1155247270829240411
https://discord.com/channels/1019350475847499849/1155248114647703582
2 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/23/2023 in #support-community
Get server time in a query/mutation for ‘updatedAt"
SOLVED
Refer: https://discord.com/channels/1019350475847499849/1155255228984213514 for the conversation
2 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/18/2023 in #support-community
how to call a function (mutation) from another function (mutation)?
Perfect DX
8 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/18/2023 in #support-community
how to call a function (mutation) from another function (mutation)?
Its awesome
8 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/18/2023 in #support-community
how to call a function (mutation) from another function (mutation)?
Btw I am really enjoying convex
8 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/18/2023 in #support-community
how to call a function (mutation) from another function (mutation)?
thanks!
8 replies
CCConvex Community
•Created by ashuvssut (ashu) on 9/18/2023 in #support-community
how to call a function (mutation) from another function (mutation)?
snippet for editing
8 replies