Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 03 13:31
    adileo synchronize #53
  • Aug 01 16:06
    lookfirst opened #59
  • Jun 18 15:13
    Syesy synchronize #53
  • Jun 13 12:14
    jthegedus commented #14
  • Jun 13 02:10
    jthegedus commented #44
  • Jun 13 01:52
    jthegedus opened #58
  • Jun 12 23:52
    jthegedus commented #54
  • May 29 15:54
    adileo synchronize #53
  • May 24 08:40
    adileo synchronize #53
  • May 23 16:25
    Syesy synchronize #53
  • May 23 15:37
    Syesy synchronize #53
  • May 23 11:26
    adileo synchronize #53
  • May 23 11:24
    Syesy synchronize #53
  • May 23 09:58
    Syesy synchronize #53
  • May 21 09:20
    Syesy synchronize #53
  • May 17 14:40
    Syesy synchronize #53
  • May 17 14:12
    Syesy synchronize #53
  • May 13 16:22
    Syesy synchronize #53
  • May 07 10:18
    Syesy synchronize #53
  • May 07 09:56
    Syesy synchronize #53
Howard Chi
@chilijung
Hi, welcome to GQLify community. Our team Canner is willing to help! Let us know if you meet any problems or issues!
Valentin Alexeev
@valentinalexeev
hi everyone! I'm trying to figure out how to use both canner and gqlify for the same project. in canner I had setup a schema on top of google firestore with some <relation/> to link tags to main documents. I had created a corresponding graphql schema and loaded it with gqlify but I'm struggling to retrieve data through such relation.
Can someone explain where my thinking is wrong? Here is the gist with full details: https://gist.github.com/valentinalexeev/9d98076d2903b2a09b84ee0fef1493af#file-query-response-json-L6-L7
william chang(張仲威)
@wwwy3y3
Hi @valentinalexeev , right now, GQLify handles relation differently to Canner, so it makes your query fails to get the related tags from event.
But no worries!
We're on our way to implement this kind of relationship (which is embedded relationship), should be published by this week.
After we release this feature, you can simply do sth like:
type Event @GQLifyModel(dataSource: "firestore", key: "events") {
  title: String!
  description: String!
  location: String!
  address: String!
  dateStart: DateTime!
  dateEnd: DateTime
  url: String! @unique
  translated: Boolean
  ready: Boolean
  loaded: Boolean
  tags: [Tag!] @relation(type: EMBED)
  city: City
  thumbnail: EventThumbnail
  contact: String
}
with @relation(type: EMBED), GQLify will know you're using map to keep your relationship.
Valentin Alexeev
@valentinalexeev
Perfect! Thank you for the update. I’ll wait for it to come
Valentin Alexeev
@valentinalexeev
Another question - are there plans to support opencrud? The queries that are generated now are quite limited. For e.g. with the schema above how do I query for events with one or more known tags?
william chang(張仲威)
@wwwy3y3
@valentinalexeev that's on our roadmap as well.
Valentin Alexeev
@valentinalexeev
Cool! :smile:
Nathan Jones
@jonesnc
@wwwy3y3 I'm having trouble creating a new Document with the Firestore dataSource. Could you take a look at this issue? Thanks. Canner/gqlify#29
Nathan Jones
@jonesnc
Is it possible to query a ManyToMany relationship? Like if I have a M2M relationship between User and Book, how can I query for all books with a certain author?
type User @GQLifyModel(dataSource: "firestore", key: "users") {
  id: ID! @unique @autoGen # auto generate unique id
  username: String!
  email: String
  books: [Book!]! # User-Book: many-to-many
}

type Book @GQLifyModel(dataSource: "firestore", key: "books") {
  id: ID! @unique @autoGen # auto generate unique id
  name: String!
  author: [User!]! # User-Book: many-to-many
}
william chang(張仲威)
@wwwy3y3

@jonesnc I'm checking your issue #29 right now. Meanwhile, could you move your question about M2M to spectrum Canner/GQLify channel here https://spectrum.chat/canner/gqlify 😄

Spectrum is a better place for community to have conversation. It's also easier for future user with similar question to find our conversation.

Nathan Jones
@jonesnc
@wwwy3y3 Will do!
william chang(張仲威)
@wwwy3y3
@jonesnc thanks a lot!
Nathan Jones
@jonesnc
I also created a small PR that fixes the issue, although I'm not sure it's the best solution.
william chang(張仲威)
@wwwy3y3
@jonesnc thanks for your contribution! It does my debugging faster! should be fixed at v1.0.11
Nathan Jones
@jonesnc
@wwwy3y3 yw, thanks for the prompt response!
brunostuani
@brunostuani
Hi all. I have two questions which were not clear in the documentation. First: Are there types/API being generated (like AWS Amplify, for example)? Second: can I write my own custom queries with my own set of fields, and will GQLify merge them with the query type in the generated expanded file? Thanks
@wwwy3y3
v1b3m
@v1b3m
Hey, I have a question that has bothered me for some time? How do you handle subcollections in firestore using gqlify?