Fixed issue and changed test_production_query to cover relevant
This uses the pipeline and dependency indexes to back all
dependency-related graphql types.
This is the most thorny part of the graphql schema and I believe it
should be relatively straightforward from here to convert the rest
of the schema to be snapshot backed.