Let’s build an AI Help Bot with NEXT.JS 14! | Add chatbotsByUser
Following the tutorial at minute 2:46:20, chatbotsByUser is added in ...view-chatbots/page.tsx
In index.graphql we must add:
chatbotsByUser(clerk_user_id: String!): [Chatbots]
@dbquery(
type: "postgresql"
schema: "public"
query: """
SELECT "clerk_user_id", "created_at", "id", "name" FROM "chatbots" WHERE "clerk_user_id" = $1
"""
configuration: "postgresql_config"
)
followed by updating the schema on the server with the stepzen deploy command.
0
0 comments
Fausto Portugal
2
Let’s build an AI Help Bot with NEXT.JS 14! | Add chatbotsByUser
University of Code
skool.com/universityofcode
You'll get Exclusive Lessons & Content, Badass Community Support & More here to elevate as a Dev!
Leaderboard (30-day)
Powered by