lib/graphiti_gql/schema/query.rb in graphiti_gql-0.2.23 vs lib/graphiti_gql/schema/query.rb in graphiti_gql-0.2.24

- old
+ new

@@ -8,10 +8,11 @@ end def build @resources.each { |resource| ResourceType.new(resource).build } define_entrypoints + add_value_objects add_relationships @query_class end private @@ -31,9 +32,16 @@ def add_relationships registry.resource_types.each do |registered| resource, type = registered[:resource], registered[:type] ResourceType.add_relationships(resource, type) + end + end + + def add_value_objects + registry.resource_types.each do |registered| + resource, type = registered[:resource], registered[:type] + ResourceType.add_value_objects(resource, type) end end end end end \ No newline at end of file