在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):OBJECTSEMANTICS/GraphQL开源软件地址(OpenSource Url):https://github.com/OBJECTSEMANTICS/GraphQL开源编程语言(OpenSource Language):Smalltalk 87.5%开源软件介绍(OpenSource Introduction):GraphQLGraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data (https://graphql.org). GraphQL is ported to two Smalltalk dialects, Pharo (6.1) and VisualWorks (7.4 & 8.3). Installation on PharoExecute the following incantation in a Playground: Metacello new
baseline: 'GraphQL';
repository: 'github://OBJECTSEMANTICS/GraphQL';
load. GraphQL is also available in the Pharo Catalog Browser:
Installation on VisualWorks 7.4This project works on VisualWorks 7.4, to install GraphQL please execute the next piece of code | dir file |
dir := Dialog requestDirectoryName: 'Choose the graphql parcels directory'.
dir isEmpty ifTrue: [^ self].
dir:= dir, (String with: Filename separator).
#('PetitExtensions' 'PetitParser' 'PetitTests'
'GraphQLBeta' 'GraphQLExtensions' 'GraphQLBetaDemoSite') do: [:fn |
file := dir, fn, '.pcl'.
file asFilename exists ifFalse: [self error: 'Missing parcel!', file asString].
Parcel loadParcelFrom: file asFilename
]. Once load all the parcels of our project. If everything is going well, all the test must pass, except the tests of the classes:
DevelopmentFor the moment our application works well for request based on selection sets. InternalsThere are some classes very important on Visual Works for GraphQL:
If you want to add your data to the Schema, you can modify the schema method on the class side of Installation on VisualWorks 8.xExecute the next code | dir file |
dir := Dialog requestDirectoryName: 'Choose the graphql parcels directory'.
dir isEmpty ifTrue: [^ self].
dir:= dir, (Core.String with: Filename separator).
#('PetitParser' 'PetitTests' 'PetitExtentions' 'GraphQLBeta' 'GraphQLJSON' 'GraphQLBetaExtentions' 'Sport' 'Swazoo' 'GraphQLDemoSite') do: [:fn |
file := dir, fn, '.pcl'.
file asFilename exists ifFalse: [self error: 'Missing parcel!', file asString].
Parcel loadParcelFrom: file asFilename
]. After loading these parcels, you should be able to run (i) all the tests of GraphQL without any failure and (ii) the demos given below Feature ideasThis list describes a roadmap of our effort
Quick DemoOur distribution contains a small demo, which works both on Pharo and VisualWorks. Execute the following steps:
Another Quick Demo
And the following methods:
AcknowledgementWe are very grateful to Lam Research for sponsoring part of this effort. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论