Skip to content

Commit

Permalink
fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Refalo committed Apr 17, 2017
1 parent 4c59568 commit c124d6f
Show file tree
Hide file tree
Showing 25 changed files with 1,136 additions and 1,145 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
node_modules

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Let's start with the basics.
So let's start with a basic class generation.
Here class attributes are given a type and a default value. We also made v3 a required field. Finally we added documentation here and there to demo what the generator does.

![](images/defaultValue__defaultValue_3.svg)
![](images/defaultValue__defaultValue_3.png)

```
# name: GraphQL Generation Samples
Expand All @@ -51,7 +51,7 @@ type MyClass {
}
```

![](images/directives__directives_9.svg)
![](images/directives__directives_9.png)

GraphQL offers a great way to implement custom behaviors using @directives. Using StarUML than can be modelled as Tags (if they need to be visually visible) or constraints. In the sample below, @const1 is not "visible"

Expand All @@ -67,7 +67,7 @@ type DirectiveClass {

Scalars and Enumerations are supported by StarUML's native _Primitive_ and _Enumeration_ types. Please ensure you use these native StarUML types in order to generate the expected artifacts.

![](images/scalars_enums__scalars_enums_4.svg)
![](images/scalars_enums__scalars_enums_4.png)

```
scalar UUID
Expand All @@ -85,7 +85,7 @@ enum Enumeration1 {

Union types are defined by using _Dependencies_. Typically Unions do not carry any attributes or relations. The generator will warn when it enconters such structure.

![](images/unions__unions_5.svg)
![](images/unions__unions_5.png)

```
type Cat {
Expand All @@ -108,7 +108,7 @@ union AnimalUnionType = Cat | Dog

###Associations, Aggregation & Composition

![](images/associations__associations_1.svg)
![](images/associations__associations_1.png)

```
type Class3 {
Expand Down Expand Up @@ -139,7 +139,7 @@ type Class5 {
}
```

![](images/class_composition__composition_8.svg)
![](images/class_composition__composition_8.png)

```
type Team {
Expand Down Expand Up @@ -172,7 +172,7 @@ type Component {

Unlike GraphQL syntax, there is no need to repeat the attribute definition across the hierachy. The generator takes care of it, Neat!

![](images/class_hierarchy__class_hierarchy_0.svg)
![](images/class_hierarchy__class_hierarchy_0.png)

```
type Vehicule {
Expand Down Expand Up @@ -215,7 +215,7 @@ type Bike extends PassengerVehicule {
```

![](images/interface_impl__interface_impl_6.svg)
![](images/interface_impl__interface_impl_6.png)

Here we use InterfaceRealization to implement an interface in a new class.

Expand Down Expand Up @@ -244,7 +244,7 @@ interface Goo {
}
```

![](images/InterfaceInherit__interfaceInheritance_2.svg)
![](images/InterfaceInherit__interfaceInheritance_2.png)

Finally a example showing interface extension.

Expand Down Expand Up @@ -285,7 +285,7 @@ interface I2 extends I1 {

###Schemas, Mutations

![](images/schema_query_mutation_subscriptions__schema_and_more_7.svg)
![](images/schema_query_mutation_subscriptions__schema_and_more_7.png)

```
type RootMutation {
Expand Down
Binary file modified images/GraphqLCheatSheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion images/InterfaceInherit__interfaceInheritance_2.svg

This file was deleted.

Binary file added images/associations__associations_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c124d6f

Please sign in to comment.