File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed
Tests/StructuredQueriesTests Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change 447447 assertQuery (
448448 Attachment
449449 . where { $0. kind. note. isNot ( nil ) }
450- . select { attachment in
450+ . select {
451451 Attachment . Columns (
452- id: attachment. id,
453- kind: Attachment . Kind. Columns (
454- allColumns: attachment. kind. link. _allColumns
455- + String? ( queryOutput: nil ) . _allColumns
456- + attachment. kind. note. jsonGroupArray ( ) . _allColumns
457- )
452+ id: $0. id,
453+ kind: Attachment . Kind. note ( $0. kind. note. jsonGroupArray ( ) )
458454 )
459455 }
460456 ) {
483479 assertQuery (
484480 Attachment
485481 . where { $0. kind. notes. isNot ( nil ) }
486- . select { attachment in
482+ . select {
487483 Attachment . Columns (
488484 id: attachment. id,
489- kind: Attachment . Kind. Columns (
490- allColumns: attachment. kind. link. _allColumns
491- + attachment. kind. note. _allColumns
492- + attachment. kind. notes. _allColumns
493- )
485+ kind: Attachment . Kind. Columns. notes ( $0. kind. notes)
494486 )
495487 }
496488 ) {
519511 assertQuery (
520512 Attachment
521513 . where { $0. kind. notes. isNot ( nil ) }
522- . select { attachment in
514+ . select {
523515 Attachment . Columns (
524- id: attachment. id,
525- kind: Attachment . Kind. Columns (
526- allColumns: attachment. kind. link. _allColumns
527- + attachment. kind. note. _allColumns
528- + attachment. kind. notes. list. _allColumns
529- )
516+ id: $0. id,
517+ kind: Attachment . Kind. list ( $0. kind. notes. list)
530518 )
531519 }
532520 ) {
You can’t perform that action at this time.
0 commit comments