#api does not generate
1 messages · Page 1 of 1 (latest)
Based on the information provided, there could be a few reasons why the api object does not include the queries and mutations for the chat table:
-
Check your function exports: Ensure that the query and mutation functions in your
chat.tsfile are being exported correctly. If they are not exported, they will not be included in theapiobject. -
Check your file structure: The
apiobject is generated based on the file structure of yourconvexdirectory. Make sure that yourchat.tsfile is located in the correct directory. -
Check for errors in your
chat.tsfile: If there are any syntax errors or other issues in yourchat.tsfile, it could prevent theapiobject from being generated correctly. -
Re-generate the
apiobject: Sometimes, you may need to re-generate theapiobject for changes to take effect. You can do this by running the appropriate command in your terminal.
If you've checked all of these and are still having issues, it would be helpful to see the exact code and file structure you're working with.