Tim Condon
2b85f770e2
Fix syntax for or queries
2021-04-08 13:27:07 +01:00
fananek
1706ac6a98
Fix links in relations chapter ( #593 )
...
* Add optional child documentation
* Apply suggestions from code review
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
* Update 4.0/docs/fluent/relations.md
* fix missing/incorrect links
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2021-03-08 11:21:03 +00:00
fananek
a7f2d02d3b
Add optional child documentation ( #591 )
2021-03-06 09:30:14 +00:00
David Llop
6ff84c0051
Add example of manual lazy eager loading ( #580 )
...
I've also moved the eager load first as it's usually more used and important than the lazy eager loading
2021-03-05 22:15:50 +00:00
Hailong
c5713dc869
Fix the table name in foreign key sample code. ( #586 )
2021-01-17 18:08:15 +00:00
Hailong
e787fe6ca4
Replace create() with update() in migration. ( #587 )
2021-01-17 18:07:47 +00:00
Hailong
ded3416ca9
Remove extraneous argument label for sort() method. ( #588 )
2021-01-17 18:07:03 +00:00
Tim Condon
55169f53ac
Fix note/tip 🤦♂️
2020-12-13 22:37:30 +00:00
Tim Condon
280a0bf9ad
Add note about importing Fluent
2020-12-13 22:31:45 +00:00
Jakub Kiermasz
3254a06bb6
Update relations document ( #571 )
...
Add missing argument in "detach" method call
2020-11-28 16:36:07 +00:00
Tim Condon
b16ac5a4a5
Update Group docs to show how .all() is used ( #568 )
2020-11-19 08:37:56 +00:00
David Llop
9577de31a6
Update fluent middleware ( #555 )
...
As @0xTim suggested in [here](https://github.com/vapor/fluent/issues/703#issuecomment-702029087 ), this part of the documentation needs to be updated
2020-10-02 09:11:09 +01:00
grundoon
8d26e74a37
fix typo ( #556 )
2020-10-02 09:10:44 +01:00
David Llop
c964788d75
Add example to use MySQL in local without SSL ( #552 )
...
* Add example to use MySQL in local without SSL
* Update 4.0/docs/fluent/overview.md
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
* Update 4.0/docs/fluent/overview.md
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2020-10-01 15:12:12 +01:00
Craz1k0ek
bb8198a796
Created transaction documentation ( #548 )
...
* Created transaction documentation
Added documentation for the transaction syntax, based on the 3.0 documentation and current implementation.
Added the Star model as example model, as it is used throughout the Fluent examples.
* Apply suggestions from code review
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2020-10-01 12:29:55 +01:00
Craz1k0ek
5dedcf70c0
SQLite foreign key violation tip ( #550 )
...
I ran into an issue where `PRAGMA foreign_keys = ON` was required on the database itself. I was unaware of this, as it worked for Vapor. I added a tip containing problems that can occur when querying the database directly.
2020-10-01 11:25:42 +01:00
Brian Drelling
e6164d2ba6
Bumped fluent-sqlite-driver version to 4.0.0 in Fluent Overview ( #543 )
2020-08-26 21:00:54 +01:00
Brian Drelling
3a25cbb90a
Corrected comment for Update snippet ( #542 )
2020-08-25 15:37:44 +01:00
grundoon
135671cd2a
Clarify @Timestamp migration format ( #540 )
2020-08-13 14:44:32 -04:00
tanner0101
d2430c1eb3
add fileio docs, fixes #524
2020-08-07 17:39:46 -04:00
tanner0101
b24892581f
clarify batch create limitations
2020-08-06 15:04:10 -04:00
Tanner
4e6f81b4f0
Add JWT docs ( #534 )
...
* add JWT docs
* add rest of JWT page
* clarify vendored jwts
* updates
2020-07-30 17:33:20 -04:00
Tim Condon
c6ef8e048f
Update join docs so it compiles
2020-07-01 11:08:08 +01:00
Craz1k0ek
7e760a4aa3
Updated field constraint example ( #515 )
...
The .unique is not a valid field constraint. I've updated the docs to correct this minor mistake.
2020-06-25 13:59:42 +01:00
Tanner
ac50b56051
update docs for toolbox release ( #514 )
2020-06-19 13:02:23 -04:00
Joannis Orlandos
2ef545f8aa
Release fluent mongo, updated the tag ( #512 )
2020-06-17 10:29:50 +01:00
tanner0101
7bb1b85fa1
distinct
2020-06-13 01:20:13 -04:00
tanner0101
add696258a
updates
2020-06-12 16:42:44 -04:00
Tanner
017d5cb349
Fluent docs ( #502 )
...
* model schema + id
* finish @ID
* add model docs
* vapor-beta plus soft delete updates
* add format docs
* enum
* @Group
* dto section
* save
* address feedback
* updates
* add migrate, start schema
* schema field + constraint
* dictionary / array
* enum + coupling
* outline
* relation docs
* Update 4.0/docs/fluent/model.md
Co-authored-by: Conal O'Neill <conaloneill@users.noreply.github.com>
* eager load
* query docs
* add'l filters
* add'l query props
* range
* finish query
* fix overview
* fix confusing min comment
* advanced
* upgrade fluent guide
* upgrade todo
* fix optional parent
* address comments
* updates
Co-authored-by: Conal O'Neill <conaloneill@users.noreply.github.com>
2020-06-12 15:38:37 -04:00
Manuel Gomez
a0108bf5ca
Updated Mongodb package dependency ( #488 )
...
The existing code to add MongoDB's driver didn't work because of an extra name and incomplete version on the .product().
```
Error: Could not generate Xcode project: 'hello' /Users/mgomez/Developer/Swift/TrailBucket/hello: error: declared name 'FluentMongoDriver' for package dependency 'https://github.com/vapor/fluent-mongo-driver.git ' does not match the actual package name 'fluent-mongo-driver'
```
```
error: because no versions of fluent-mongo-driver match the requirement 1.0.0..<2.0.0 and root depends on fluent-mongo-driver 1.0.0..<2.0.0, version solving failed.
```
2020-05-19 16:28:01 +01:00
Ray Fix
22ec9175f9
Fix typo in CreateStarTag migration ( #477 )
...
* Fix typo in CreateStarTag migration
A bigger change would be to change the examples to use the static schema property of the model. That should probably be done for the whole file though.
* fix tag reference in StarTag example
2020-04-24 17:38:31 -04:00
Joannis Orlandos
3bc0acce3f
Add MongoDB docs for configuration and nested entities ( #456 )
...
* Add MongoDB docs for configuration and nested entities
* Update 4.0/docs/fluent/mongo.md
Co-Authored-By: Tim <0xTim@users.noreply.github.com>
* Update 4.0/docs/fluent/config.md
Co-Authored-By: Tim <0xTim@users.noreply.github.com>
* Reorganise fluent docs
* Update mongo docs
* Move MongoDB modelling info into advanced
Co-authored-by: Tim <0xTim@users.noreply.github.com>
2020-04-17 12:09:13 -04:00
Tanner
eaf0f72033
console + logging docs ( #458 )
...
* console + logging docs
* commands docs
* updates
2020-03-27 17:47:30 -04:00
Jeremy Greenwood
41000c2fdb
Remove Bcrypt hash function argument ( #449 )
...
Fixed typo which specified the argument `password` in
```
func hash(_ plaintext: String, cost: Int = 12) throws -> String
```
2020-03-11 09:43:40 +00:00
tanner0101
b74b590060
timestamp updates
2020-03-02 13:16:47 -05:00
tanner0101
c6a7f75a59
rc.1 updates
2020-03-02 13:07:33 -05:00
rpstro02
eef1360f6a
Siblings ( #443 )
...
* added siblings documentation
* more siblings documentation
* siblings
* Add previously abridged siblings and migration code
Improved sibling relationship post request
* Improved tag creation post route
addressed nits
2020-02-20 20:55:03 +00:00
Tanner
6fb3503878
Swift 5.2 requirement ( #442 )
2020-02-15 13:44:40 -08:00
tanner0101
8536178b4b
add migration names, fixes #441
2020-02-15 13:03:26 -05:00
Steve Bryce
2448ff5392
Timestamp and ModelMiddleware docs ( #436 )
...
* Timestamp and ModelMiddleware docs
* Readability improvements
* Nit fixes
2020-02-07 13:06:22 +00:00
Tanner
c5151a44cb
add authentication ( #435 )
...
* add authentication
* update auth
* rm yaml change
* add fluent auth/c
* fixes
* fix nits
* composition
2020-01-22 14:59:59 -08:00
tanner0101
1c8f61f6f2
fix links
2020-01-20 16:09:25 -05:00
Tanner
f675ce19f8
Refactor 4.0 Folder Structure ( #433 )
...
* validation basics
* refactor folder structure
2020-01-20 12:17:12 -08:00
Bastian Inuk Christensen
98f8095c48
Changed .psql to .mysql in part about mysql ( #431 )
2020-01-19 10:14:19 -08:00
Tanner
ed4878a5e9
start fluent docs ( #430 )
...
* start fluent docs
* finish overview
* update sqlite config
* fix nits
* fix typo
2020-01-18 13:09:44 -08:00