Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the tailcall configuration on Getting Started section with the complete JsonPlaceholder configuration #374

Open
tusharmath opened this issue Jul 21, 2024 · 16 comments · May be fixed by #390
Labels
good first issue Good for newcomers

Comments

@tusharmath
Copy link
Contributor

Add a section with a full tailcall configuration for JsonPlaceholder, start from the below configuration.

schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") {
  query: Query
}

type Address {
  city: String
  geo: Geo
  street: String
  suite: String
  zipcode: String
}

type Company {
  bs: String
  catchPhrase: String
  name: String
}

type Geo {
  lat: String
  lng: String
}

type Photo {
  albumId: Int
  id: Int
  thumbnailUrl: String
  title: String
  url: String
}

type Post {
  body: String
  id: Int
  title: String
  userId: Int
}

type Comment {
  body: String
  email: String
  id: Int
  name: String
  postId: Int
}

type Query {
  comment(id: Int!): Comment @http(path: "/comments/{{.args.id}}")
  comments: [Comment] @http(path: "/comments")
  photo(id: Int!): Photo @http(path: "/photos/{{.args.id}}")
  photos: [Photo] @http(path: "/photos")
  post(id: Int!): Post @http(path: "/posts/{{.args.id}}")
  posts: [Post] @http(path: "/posts")
  todo(id: Int!): Todo @http(path: "/todos/{{.args.id}}")
  todos: [Todo] @http(path: "/todos")
  user(id: Int!): User @http(path: "/users/{{.args.id}}")
  users: [User] @http(path: "/users")
}

type Todo {
  completed: Boolean
  id: Int
  title: String
  userId: Int
}

type User {
  address: Address
  company: Company
  email: String
  id: Int
  name: String
  phone: String
  username: String
  website: String
}

Technical Requirements

  • Use @call to add relationships between types.
  • Add YML and JSON versions also.
  • Ensure configurations are validated via the Tailcall CLI
@tusharmath
Copy link
Contributor Author

/bounty 20$

Copy link

algora-pbc bot commented Jul 21, 2024

💎 $20 bounty • Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #374 with your implementation plan
  2. Submit work: Create a pull request including /claim #374 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcallhq.github.io!
🧐 Checkout our guidelines before you get started.
💵 More about our bounty program.

Attempt Started (GMT+0) Solution
🔴 @neo773 Jul 21, 2024, 9:42:44 AM WIP
🔴 @Bhavyajain21 Jul 21, 2024, 9:43:46 AM WIP
🟢 @harshtech123 Jul 23, 2024, 1:04:02 PM #385
🟢 @onyedikachi-david Jul 24, 2024, 11:45:09 AM #390

@tusharmath tusharmath added good first issue Good for newcomers and removed 💎 Bounty labels Jul 21, 2024
@neo773
Copy link
Contributor

neo773 commented Jul 21, 2024

/attempt #374

Algora profile Completed bounties Tech Active attempts Options
@neo773    52 tailcallhq bounties
+ 74 bounties from 24 projects
TypeScript, Rust,
Go & more
Cancel attempt

@Bhavyajain21
Copy link
Contributor

Bhavyajain21 commented Jul 21, 2024

/attempt #374

Algora profile Completed bounties Tech Active attempts Options
@Bhavyajain21    3 tailcallhq bounties
+ 11 bounties from 2 projects
TypeScript, Rust,
JavaScript & more
﹟360, ﹟373
Cancel attempt

Copy link

algora-pbc bot commented Jul 21, 2024

Note

The user @neo773 is already attempting to complete issue #374 and claim the bounty. We recommend checking in on @neo773's progress, and potentially collaborating, before starting a new solution.

@harshtech123
Copy link

/attempt#374

@harshtech123
Copy link

hey @tusharmath tailcall cli as per documentation is not working , for npm or yarn as well
https://tailcall.run/docs/#installing-the-tailcall-cli is this correct ?

@tusharmath
Copy link
Contributor Author

What's not working?

@harshtech123
Copy link

this Ensure configurations are validated via the Tailcall CLI
i am runninf tailcall - validate but it is saying tailcall is not a command and i also try to install tailcall by running commands as per above documentation , can you please tell me how to validate ?

Copy link

algora-pbc bot commented Jul 22, 2024

@neo773: Reminder that in 1 days the bounty will become up for grabs, so please submit a pull request before then 🙏

Copy link

algora-pbc bot commented Jul 22, 2024

@Bhavyajain21: Reminder that in 1 days the bounty will become up for grabs, so please submit a pull request before then 🙏

harshtech123 added a commit to harshtech123/tailcallhq.github.io that referenced this issue Jul 22, 2024
checked all the Technical Requirements

Use @call to add relationships between types.
Add YML and JSON versions also.
Ensure configurations are validated via the Tailcall CLI
Copy link

algora-pbc bot commented Jul 23, 2024

The bounty is up for grabs! Everyone is welcome to /attempt #374 🙌

@harshtech123
Copy link

harshtech123 commented Jul 23, 2024

/attempt #378

harshtech123 added a commit to harshtech123/tailcallhq.github.io that referenced this issue Jul 24, 2024
checked all the Technical Requirements

Use @call to add relationships between types.
Add YML and JSON versions also.
Ensure configurations are validated via the Tailcall CLI
@onyedikachi-david
Copy link
Contributor

onyedikachi-david commented Jul 24, 2024

/attempt #374

Algora profile Completed bounties Tech Active attempts Options
@onyedikachi-david    2 tailcallhq bounties
+ 2 bounties from 1 project
JavaScript, Shell
Cancel attempt

Copy link

algora-pbc bot commented Jul 24, 2024

Note

The user @harshtech123 is already attempting to complete issue #374 and claim the bounty. We recommend checking in on @harshtech123's progress, and potentially collaborating, before starting a new solution.

Copy link

algora-pbc bot commented Jul 24, 2024

💡 @onyedikachi-david submitted a pull request that claims the bounty. You can visit your bounty board to reward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants