[1] The first issue we must resolve concerns the justiciability of the present action — whether the trial court had authority to enjoin arbitration on grounds of res judicata or collateral estoppel. Defendant argues that G.S. 1-567.31/ limits the basis upon which a court may stay arbitration proceedings solely to the issue of whether a written agreement to arbitrate a particular dispute exists and that all other matters, including factual and legal issues, are the proper subject matter of the arbitration itself. It is defendant’s position that the courts may determine *552any factual or legal issues involved only after the arbitration award has been entered. While we have found no cases in this State or other jurisdictions dispositive of this precise issue under the Uniform Act, it is our opinion that the extent of a judgment’s binding effect is a matter for judicial determination. Cf., Rembrandt Ind. v. Hodges Int., 38 N.Y. 2d 502, 381 N.Y.S. 2d 451, 344 N.E. 2d 383 (1976) (the scope of an arbitration award and its res judicata effect are issues properly determinable by the court and not the arbitrators); accord, Weinberger v. Friedman, 41 A.D. 2d 620, 340 N.Y.S. 2d 720 (1st Dep’t 1973). We do not believe that in enacting the Uniform Act, the General Assembly intended to grant arbitrators the authority to determine the res judicata or collateral estoppel effect of a prior judgment. The arbitrability of various issues and disputes under the Uniform Act has, in general, been determined to be a matter for the courts to decide. See, e.g., Ferris College v. Faculty Ass’n, 72 Mich. App. 244, 249 N.W. 2d 375 (1976), cert. denied, 399 Mich. 861 (1977); Layne-Minnesota Co. v. Regents of the University, 266 Minn. 284, 123 N.W. 2d 371 (1963). We hold that it was within the authority of the trial court to determine whether the subject matter of the demand for arbitration had been previously litigated between the parties and reduced to a judgment binding upon them.
[2] Defendant also maintains that the arbitration here is not barred under the doctrine of res judicata or collateral estoppel because the issue in the proposed arbitration was not fully litigated and determined between the parties in the prior Virginia court proceedings. The basic principles of estoppel by judgment are succinctly set forth in King v. Grindstaff, 284 N.C. 348, 200 S.E. 2d 799 (1973). Estoppel by judgment arises when there has been a final judgment or decree, necessarily determining a fact, question or right in issue, rendered by a court of competent jurisdiction, and there is a later suit involving an issue as to the identical fact, question or right determined, involving identical parties or parties in privity with a party or parties to the prior suit. Such a judgment operates as an estoppel not only as to the issues actually reduced to judgment in the former proceeding, but also as to all issuable matters contained in the pleadings, including all material and relevant matters within the scope of the pleadings, which the parties, in the exercise of reasonable *553diligence, could and should have brought forward. Brondum v. Cox, 292 N.C. 192, 232 S.E. 2d 687 (1977); Bruton v. Light Co., 217 N.C. 1, 6 S.E. 2d 822 (1940). Issues which could have been litigated in the prior suit but were not are said to be “merged” into the prior judgment. Behr v. Behr, 46 N.C. App. 694, 266 S.E. 2d 393 (1980). Similarly, a party to a judgment is barred from litigating or relitigating issues in an arbitration proceeding which are raised or could have been raised in the prior action. Cf., Domke on Commercial Arbitration, § 39.04, pp. 338-339 (1968) (prior arbitration award constitutes a bar to subsequent suit or arbitration arising out of the same cause of action or dispute). Judge Pridgen found that the same issues asserted in the demand for arbitration were asserted by Hopkins in the prior Virginia court proceeding and were fully determined there. The evidence clearly supports this finding and we are therefore bound by it. Henderson County v. Osteen, 297 N.C. 113, 254 S.E. 2d 160 (1979).
Upon his findings, Judge Pridgen correctly concluded that the parties in this action and in the demand for arbitration are the same or were in privity with the parties in the Virginia action, that the judgment in that action finally determined the issues between the parties asserted by Hopkins in its demand for arbitration, and that Hopkins is barred by that judgment from proceeding further in its demand for arbitration.
Affirmed.
Chief Judge Morris and Judge Vaughn concur.