Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marco.moretto@gmail.com committed May 24, 2019
1 parent a5499fb commit 94964bd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compass/settings.py
Expand Up @@ -101,7 +101,7 @@
'NAME': 'expdata_bsubt',
'USER': os.environ['COMPASS_DB_USER'],
'PASSWORD': os.environ['COMPASS_DB_PASS'],
'HOST': 'jabberwocky', #os.environ['COMPASS_DB_SERVICE'],
'HOST': os.environ['COMPASS_DB_SERVICE'], #'jabberwocky', #
'PORT': os.environ['COMPASS_DB_PORT'],
'COMPENDIUM': True,
}
Expand Down
Binary file modified compass_graphql/docs/_static/insomnia_query_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions compass_graphql/docs/quickstart.rst
Expand Up @@ -25,7 +25,7 @@ The result reflects the query structure and consists of a JSON document. Insomni
import requests
url = 'http://vespucci.fmach.it/graphql'
url = 'http://compass.fmach.it/graphql'
query = '''
{
compendia {
Expand All @@ -36,7 +36,7 @@ The result reflects the query structure and consists of a JSON document. Insomni
}
}
'''
request = requests.post('http://127.0.0.1:8000/graphql', json={'query': query})
request = requests.post('http://compass.fmach.it/graphql', json={'query': query})
print(request.json())
Expand Down
5 changes: 5 additions & 0 deletions compass_graphql/lib/schema/sample_set.py
Expand Up @@ -30,6 +30,11 @@ class Meta:
}
interfaces = (graphene.relay.Node,)

normalization = graphene.String()

def resolve_normalization(self, info, **kwargs):
return self.normalization_experiment.normalization.name


class Query(object):
sample_sets = DjangoFilterConnectionField(SampleSetType,
Expand Down
4 changes: 2 additions & 2 deletions compass_graphql/lib/schema/score_rank_methods.py
Expand Up @@ -22,8 +22,8 @@ class ScoreRankMethodsType(ObjectType):
class Meta:
default_resolver = dict_resolver

sample_sets = graphene.String()
biological_features = graphene.String()
sample_sets = graphene.List(graphene.String)
biological_features = graphene.List(graphene.String)


class RankingType(ObjectType):
Expand Down

0 comments on commit 94964bd

Please sign in to comment.