Skip to content

Repository files navigation

Dynamic Admin Apps for GraphDL Schemas

Northwind Example

_name: Northwind_seed: https://json.fyi/northwind.json_defaultId: entityId_constraints: trueCategory:
_id: entityId_name: ${categoryName} - ${description}entityId: intcategoryName: stringdescription: stringpicture: https://img.do/northwind/${categoryName}.jpgCustomer:
_id: entityId_name: companyName_icon: entityId: intcompanyName: stringaddress: stringcity: stringpostalCode: stringregion: stringcountry: stringcontactName: stringcontactTitle: stringphone: phonemobile: phonefax: phoneemail: emailEmployee:
_id: entityId_name: ${firstname} ${lastname}, ${title}entityId: inttitleOfCourtesy: stringfirstname: stringlastname: stringbirthDate: datehireDate: datetitle: stringaddress: stringcity: stringpostalCode: stringregion: stringcountry: stringphone: phoneextension: stringmobile: phoneemail: emailmgrId: Employee.entityIdphoto: https://img.do/northwind/employee/${entityId}.jpgnotes: richtextEmployeeTerritory:
_id: entityId_name: territoryCodeentityId: intemployeeId: EmployeeterritoryCode: Territory.territoryCodeOrderDetail:
_id: entityId_name: ${quantity} ${productId->name}entityId: intorderId: OrderproductId: Productquantity: intunitPrice: currencydiscount: currencyProduct:
_id: entityId_name: productNameentityId: intproductName: stringcategoryId: CategorysupplierId: SupplierunitPrice: currencydiscontinued: boolreorderLevel: intunitsInStock: intunitsOnOrder: intquantityPerUnit: intSalesOrder:
_id: entityId_name: ${date(orderDate)} - ${count(<-OrderDetail)} ItemsentityId: intcustomerId: CustomeremployeeId: EmployeeshipperId: ShipperorderDate: datetimefreight: currencyrequiredDate: datetimeshippedDate: datetimeshipName: stringshipAddress: stringshipCity: stringshipPostalCode: stringshipRegion: stringshipCountry: stringShipper:
_id: entityId_name: companyNameentityId: intcompanyName: stringphone: phoneSupplier:
_id: entityId_name: companyNameentityId: intcompanyName: stringaddress: stringcity: stringpostalCode: stringregion: stringcountry: stringcontactName: stringcontactTitle: stringphone: phonemobile: phonefax: phoneemail: emailRegion:
_id: entityId_name: regiondescriptionentityId: intregiondescription: stringTerritory:
_id: entityId_name: territorydescriptionentityId: intregionId: RegionterritoryCode: stringterritorydescription: string
Post:
_seed: https://jsonplaceholder.typicode.com/posts_id: id_name: titleuserId: User.idtitle: stringbody: markdownComment:
_seed: https://jsonplaceholder.typicode.com/posts_id: id_name: nameemail: emailbody: markdownAlbum:
_seed: https://jsonplaceholder.typicode.com/albums_id: id_name: title_detail: include: [Album.id<-Photo.albumId]title: stringuserId: User.idPhoto:
_seed: https://jsonplaceholder.typicode.com/photos_id: id_name: title_list: cardsalbumId: [Album.id]title: stringurl: imageUrlthumbnailUrl: imageUrlToDo:
_seed: https://jsonplaceholder.typicode.com/todos_id: id_name: title_list: kanban(completed)title: stringcompleted: boolUser:
_seed: https://jsonplaceholder.typicode.com/users_id: id_name: name_list:
fields: [name, email, `${address.street}, ${address.city}`, company.name, phone, website]_detail:
_include: [[Post],[Album],[Album->Photo],[ToDo]]name: stringusername: stringemail: stringaddress:
street: stringsuite: stringcity: stringzipcode: stringgeo:
lat: latitudelng: longitudephone: phonewebsite: domaincompany:
name: stringcatchPhrase: stringbs: string

About

Dynamic Admin Apps for GraphDL Schemas

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages