-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update lighthouse example with latest schema changes
See apollographql#166 for details. Resolves apollographql#190
- Loading branch information
1 parent
f3de5db
commit c31fcf7
Showing
20 changed files
with
1,379 additions
and
5,737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
/vendor | ||
|
||
# override defaults | ||
!app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:8.0-cli | ||
FROM php:8.2-cli | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
* Primary key | ||
* @property string $caseNumber | ||
* | ||
* Attributes | ||
* @property string|null $description | ||
*/ | ||
class CaseStudy extends Model | ||
{ | ||
public $timestamps = false; | ||
|
||
public $incrementing = false; | ||
|
||
protected $primaryKey = 'caseNumber'; | ||
} |
34 changes: 34 additions & 0 deletions
34
implementations/lighthouse/app/Models/DeprecatedProduct.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Database\Eloquent\Relations\BelongsTo; | ||
|
||
/** | ||
* Primary key | ||
* @property string $sku | ||
* @property string $package | ||
* | ||
* Attributes | ||
* @property string|null $reason | ||
* | ||
* Foreign keys | ||
* @property string|null $createdByUserEmail | ||
* | ||
* Relations | ||
* @property-read User|null $createdBy | ||
*/ | ||
class DeprecatedProduct extends Model | ||
{ | ||
public $timestamps = false; | ||
|
||
public $incrementing = false; | ||
|
||
protected $primaryKey = ['sku', 'package']; | ||
|
||
public function createdBy(): BelongsTo | ||
{ | ||
return $this->belongsTo(User::class, 'createdByUserEmail'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Database\Eloquent\Relations\BelongsTo; | ||
|
||
/** | ||
* Primary key | ||
* @property string $studyCaseNumber | ||
* | ||
* Attributes | ||
* @property string|null $outcome | ||
* | ||
* Foreign keys | ||
* @property string|null $studyCaseNumber | ||
* | ||
* Relations | ||
* @property-read CaseStudy $study | ||
*/ | ||
class ProductResearch extends Model | ||
{ | ||
public $timestamps = false; | ||
|
||
public $incrementing = false; | ||
|
||
protected $primaryKey = 'studyCaseNumber'; | ||
|
||
public function study(): BelongsTo | ||
{ | ||
return $this->belongsTo(CaseStudy::class, 'studyCaseNumber'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.