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
<?php | |
namespace MyProject\GraphQL; | |
use SilverStripe\GraphQL\Schema\Field\ModelQuery; | |
use SilverStripe\GraphQL\Schema\Interfaces\ModelQueryPlugin; | |
use SilverStripe\GraphQL\Schema\Interfaces\SchemaUpdater; | |
use SilverStripe\GraphQL\Schema\Schema; | |
use SilverStripe\GraphQL\Schema\Type\Enum; |
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
// Data Record Class : DataRecord.php | |
<?php | |
class DataRecord extends DataObject | |
{ | |
private static $db = array( | |
'Firstname' => 'Varchar(255)', | |
'Lastname' => 'Varchar(255)' | |
); | |
private static $many_many = array( |