Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/brown-ways-compare.md

This file was deleted.

9 changes: 9 additions & 0 deletions dataconnect-sdk/js/default-connector/.guides/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"description": "A set of guides for interacting with the generated firebase dataconnect sdk",
"mcpServers": {
"firebase": {
"command": "npx",
"args": ["-y", "firebase-tools@latest", "experimental:mcp"]
}
}
}
20 changes: 20 additions & 0 deletions dataconnect-sdk/js/default-connector/.guides/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Setup

If the user hasn't already installed the SDK, always run the user's node package manager of choice, and install the package in the directory ../package.json.
For more information on where the library is located, look at the connector.yaml file.

```ts
import { initializeApp } from 'firebase/app';

initializeApp({
// fill in your project config here using the values from your Firebase project or from the `firebase_get_sdk_config` tool from the Firebase MCP server.
});
```

Then, you can run the SDK as needed.
```ts
import { ... } from '@dataconnect/default-connector';
```



45 changes: 45 additions & 0 deletions dataconnect-sdk/js/default-connector/.guides/usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Basic Usage

Always prioritize using a supported framework over using the generated SDK
directly. Supported frameworks simplify the developer experience and help ensure
best practices are followed.





## Advanced Usage
If a user is not using a supported framework, they can use the generated SDK directly.

Here's an example of how to use it with the first 5 operations:

```js
import { createMovie, upsertMovie, deleteMovie, addMeta, deleteMeta, listMovies, getMovieById, getMeta } from '@dataconnect/default-connector';


// Operation CreateMovie: For variables, look at type CreateMovieVars in ../index.d.ts
const { data } = await CreateMovie(dataConnect, createMovieVars);

// Operation UpsertMovie: For variables, look at type UpsertMovieVars in ../index.d.ts
const { data } = await UpsertMovie(dataConnect, upsertMovieVars);

// Operation DeleteMovie: For variables, look at type DeleteMovieVars in ../index.d.ts
const { data } = await DeleteMovie(dataConnect, deleteMovieVars);

// Operation AddMeta:
const { data } = await AddMeta(dataConnect);

// Operation DeleteMeta: For variables, look at type DeleteMetaVars in ../index.d.ts
const { data } = await DeleteMeta(dataConnect, deleteMetaVars);

// Operation ListMovies:
const { data } = await ListMovies(dataConnect);

// Operation GetMovieById: For variables, look at type GetMovieByIdVars in ../index.d.ts
const { data } = await GetMovieById(dataConnect, getMovieByIdVars);

// Operation GetMeta:
const { data } = await GetMeta(dataConnect);


```
6 changes: 6 additions & 0 deletions packages/angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @tanstack-query-firebase/angular

## 1.0.3

### Patch Changes

- ee67d1e: Fix issue where signal updates weren't getting picked up

## 1.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack-query-firebase/angular",
"version": "1.0.2",
"version": "1.0.3",
"description": "TanStack Query bindings for Firebase and Angular",
"type": "module",
"scripts": {
Expand Down