Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho committed Jul 15, 2024
1 parent 6c6dc87 commit 909baf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
12 changes: 5 additions & 7 deletions waspc/src/Wasp/Psl/Parser/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ import Wasp.Psl.Parser.Model (body)
-- url String
-- }
--
-- From the Prisma docs:
-- > Composite types are only available with MongoDB.
-- > Composite types, known as embedded documents in MongoDB,
-- > allow you to embed records within other records.
--
-- Even though Wasp doesn't yet support MongoDB, we wanted to
-- cover all the features of Prisma in the PSL.
-- PSL type blocks have the same syntax as
-- Prisma model blocks, but they are prefixed with
-- `type` keyword. That's why we are reusing the
-- `body` parser from `Model` to parse the body
-- of the type block.
typeBlock :: Parser Psl.Type.Type
typeBlock = do
reserved "type"
Expand Down
10 changes: 5 additions & 5 deletions waspc/src/Wasp/Psl/Parser/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import Wasp.Psl.Parser.Model (body)
-- name String
-- }
--
-- From the Prisma docs:
-- > Database views allow you to name and store queries.
-- > In relational databases, views are stored SQL queries (...)
-- > In MongoDB, views are (...) defined by an aggregation
-- > pipeline on other collections.
-- PSL view blocks have the same syntax as
-- Prisma model blocks, but they are prefixed with
-- `view` keyword. That's why we are reusing the
-- `body` parser from `Model` to parse the body
-- of the type block.
view :: Parser Psl.View.View
view = do
reserved "view"
Expand Down

0 comments on commit 909baf6

Please sign in to comment.